Skip to content

Commit 90bd8a4

Browse files
committed
Fix moo parameter extraction and custom_attributes
1 parent 674c54c commit 90bd8a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

task_queue/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __run_simulation(simulation_input):
5353
"renewable_factor",
5454
"land_requirement_factor",
5555
"water_consumption_factor",
56-
"indirect_water_consumption_factor"
56+
"indirect_water_consumption_factor",
5757
"land_requirement",
5858
"water_footprint",
5959
"ghg_emissions",
@@ -62,7 +62,7 @@ def __run_simulation(simulation_input):
6262
]
6363

6464
# Extract user-defined MOO weights
65-
moo_wf = parameters.get("moo_wf", None)
65+
moo_wf = parameters.get("moo_wf", {})
6666

6767
# Determine if MOO should be active
6868
wf_cost = moo_wf.get("wf_cost", None)

0 commit comments

Comments
 (0)