Refine simulation code by WMH
This commit is contained in:
@@ -663,9 +663,9 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s
|
||||
for fixed_pump_name, value in fixed_pump_dict.items():
|
||||
if value:
|
||||
pump_pattern = get_pattern(name_c, get_pump(name_c, fixed_pump_name)['pattern'])
|
||||
print(pump_pattern)
|
||||
# print(pump_pattern)
|
||||
pump_pattern['factors'][modify_index] = float(value)
|
||||
print(pump_pattern['factors'][modify_index])
|
||||
# print(pump_pattern['factors'][modify_index])
|
||||
cs = ChangeSet()
|
||||
cs.append(pump_pattern)
|
||||
set_pattern(name_c, cs)
|
||||
|
||||
Reference in New Issue
Block a user