From b9fb3ad84fbdee440c39e6a4b9b69365e578e117 Mon Sep 17 00:00:00 2001 From: Zhou32 Date: Tue, 23 Jan 2024 22:07:55 +1100 Subject: [PATCH] small bug fix in example --- examples/all_features_example_except_basslink.py | 2 +- examples/basslink_switchrun.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/all_features_example_except_basslink.py b/examples/all_features_example_except_basslink.py index 3e73ec2..b2d919d 100644 --- a/examples/all_features_example_except_basslink.py +++ b/examples/all_features_example_except_basslink.py @@ -171,7 +171,7 @@ def get_test_intervals(number=100): market.set_joint_ramping_constraints_raise_reg(scada_ramp_up_rates) market.make_constraints_elastic('joint_ramping_raise_reg', cost) - if 'fast_start' in market.get_constraint_set_names.keys(): + if 'fast_start' in market.get_constraint_set_names(): cost = constraint_inputs.get_constraint_violation_prices()['fast_start'] market.make_constraints_elastic('fast_start', violation_cost=cost) diff --git a/examples/basslink_switchrun.py b/examples/basslink_switchrun.py index ad08254..43b7014 100644 --- a/examples/basslink_switchrun.py +++ b/examples/basslink_switchrun.py @@ -181,7 +181,7 @@ def set_joint_ramping_constraints(run_type): set_ramp_rates(run_type='fast_start_second_run') set_joint_ramping_constraints(run_type='fast_start_second_run') market.set_fast_start_constraints(fast_start_profiles) - if 'fast_start' in market.get_constraint_set_names.keys(): + if 'fast_start' in market.get_constraint_set_names(): cost = constraint_inputs.get_constraint_violation_prices()['fast_start'] market.make_constraints_elastic('fast_start', violation_cost=cost)