Download task/single-software-execution/cli/floris/task-01/task-01.json from HongchengGao/EngiWorld-Tasks: direct link, hf CLI and curl.
- Browser
- Download file 2.53 kB
-
https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/floris/task-01/task-01.json
- Command line
-
hf download hf://datasets/HongchengGao/EngiWorld-Tasks/task/single-software-execution/cli/floris/task-01/task-01.json
-
curl -L -o task-01.json https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/floris/task-01/task-01.json
2.53 kB
| { | |
| "id": "single-software-execution--cli--floris--task-01--ubuntu", | |
| "snapshot": "FLORIS4.6.4", | |
| "instruction": "The starting input is a FLORIS configuration file `/home/user/Desktop/two_turbine.yaml` and an incomplete script `/home/user/Desktop/wake_base.py`. Run your scripts with Python in an environment where `floris` is installed (e.g. `from floris import FlorisModel`). 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/wake.py`: - Use `FlorisModel` to load `/home/user/Desktop/two_turbine.yaml` - Set conditions: `wind_directions=[270]`, `wind_speeds=[8]`, `turbulence_intensities=[0.06]` - Execute `fmodel.run()` - Extract turbine powers in kW: `turbine_powers = fmodel.get_turbine_powers() / 1000.0` 2. Execute `wake.py`. 3. Save results to `/home/user/Desktop/summary.txt` in this format: `turbine_0_kw, turbine_1_kw` 4. Do not use FLORIS visualization GUI (such as `fmodel.plot` commands).", | |
| "source": "https://github.com/NatLabRockies/floris", | |
| "config": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-01/init_file/two_turbine.yaml", | |
| "path": "/home/user/Desktop/two_turbine.yaml" | |
| }, | |
| { | |
| "local_path": "task-01/init_file/wake_base.py", | |
| "path": "/home/user/Desktop/wake_base.py" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "trajectory": "trajectories/", | |
| "related_apps": [ | |
| "floris" | |
| ], | |
| "artifact_paths": [ | |
| "/home/user/Desktop/summary.txt", | |
| "/home/user/Desktop/wake.py" | |
| ], | |
| "evaluator": { | |
| "postconfig": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-01/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" | |
| } | |