HongchengGao's picture
Align task taxonomy and IDs with the updated paper; main evaluation 306
3de3b50 verified
Raw History Blame Contribute Delete
2.42 kB
{
"id": "single-software-execution--cli--floris--task-11--ubuntu",
"snapshot": "FLORIS4.6.4",
"instruction": "A parallel-computation template `/home/user/Desktop/parallel_base.py` is provided. Run your scripts with Python in an environment where `floris` is installed (e.g. `from floris import FlorisModel`). On this machine, FLORIS is provided as the Python `floris` package at `/home/user/.local/lib/python3.12/site-packages/floris`; run the workflow from Python rather than looking for a separate desktop program.\n\nComplete the following from the command line: 1. Write a complete script `/home/user/Desktop/parallel.py`: - Use `ParFlorisModel` with `max_workers=4` - Set 36 wind directions and execute `run()` - Extract farm power for each condition - Also run the same conditions serially with `FlorisModel`, and compute consistency relative error (%) with target error `< 0.1%` 2. Execute and save to `/home/user/Desktop/summary.txt` in this format: `max_power_kw, min_power_kw, consistency_rel_error_percent` 3. Consistency pass/fail is determined by eval (`consistency_rel_error_percent < 0.1`); do not output pass/true text. 4. Do not use any GUI.",
"source": "https://github.com/NatLabRockies/floris",
"config": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-11/init_file/parallel_base.py",
"path": "/home/user/Desktop/parallel_base.py"
}
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"floris"
],
"artifact_paths": [
"/home/user/Desktop/parallel.py",
"/home/user/Desktop/summary.txt"
],
"evaluator": {
"postconfig": [
{
"type": "upload_file",
"parameters": {
"files": [
{
"local_path": "task-11/eval.py",
"path": "/home/user/Desktop/eval.py"
},
{
"local_path": "eval_utils.py",
"path": "/home/user/Desktop/eval_utils.py"
}
]
}
}
],
"func": "exact_match",
"result": {
"type": "vm_command_line",
"command": "python3 /home/user/Desktop/eval.py",
"shell": "true"
},
"expected": {
"type": "rule",
"rules": {
"expected": "True\n"
}
}
},
"proxy": false,
"fixed_ip": false,
"possibility_of_env_change": "low"
}