Download task/single-software-execution/cli/floris/task-06/task-06.json from HongchengGao/EngiWorld-Tasks: direct link, hf CLI and curl.
- Browser
- Download file 2.35 kB
-
https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/floris/task-06/task-06.json
- Command line
-
hf download hf://datasets/HongchengGao/EngiWorld-Tasks/task/single-software-execution/cli/floris/task-06/task-06.json
-
curl -L -o task-06.json https://huggingface.co/datasets/HongchengGao/EngiWorld-Tasks/resolve/main/task/single-software-execution/cli/floris/task-06/task-06.json
2.35 kB
| { | |
| "id": "single-software-execution--cli--floris--task-06--ubuntu", | |
| "snapshot": "FLORIS4.6.4", | |
| "instruction": "Treat a template `/home/user/Desktop/loss_base.py` as the starting point. 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/loss.py`: - With wake: `fmodel.run()`, extract total power `P_wake` - Without wake: `fmodel.run_no_wake()`, extract total power `P_nowake` - Compute wake-loss rate: `loss = (P_nowake - P_wake) / P_nowake * 100` 2. Execute and save to `/home/user/Desktop/summary.txt` in this format: `P_nowake_kw, P_wake_kw, wake_loss_percent` 3. Do not use any GUI.", | |
| "source": "https://github.com/NatLabRockies/floris", | |
| "config": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-06/init_file/loss_base.py", | |
| "path": "/home/user/Desktop/loss_base.py" | |
| }, | |
| { | |
| "local_path": "task-06/init_file/two_turbine.yaml", | |
| "path": "/home/user/Desktop/two_turbine.yaml" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "trajectory": "trajectories/", | |
| "related_apps": [ | |
| "floris" | |
| ], | |
| "artifact_paths": [ | |
| "/home/user/Desktop/loss.py", | |
| "/home/user/Desktop/summary.txt" | |
| ], | |
| "evaluator": { | |
| "postconfig": [ | |
| { | |
| "type": "upload_file", | |
| "parameters": { | |
| "files": [ | |
| { | |
| "local_path": "task-06/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" | |
| } | |