Skip to content

Commit

Permalink
improve default value max_current_single_phase = 16 (#1707)
Browse files Browse the repository at this point in the history
* improve default value  max_current_single_phase = 16

* fix test
  • Loading branch information
LKuemmel authored Jun 27, 2024
1 parent 0262094 commit 5cdab51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/control/algorithm/integration_test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def data_() -> None:
data.data.cp_data[f"cp{i}"].data.config.phase_1 = i-2
data.data.cp_data[f"cp{i}"].data.set.charging_ev = i
data.data.cp_data[f"cp{i}"].data.set.charging_ev_data = Ev(i)
data.data.cp_data[f"cp{i}"].data.set.charging_ev_data.ev_template.data.max_current_single_phase = 32
data.data.cp_data[f"cp{i}"].data.get.plug_state = True
data.data.cp_data[f"cp{i}"].data.set.plug_time = f"12/01/2022, 15:0{i}:11"
data.data.cp_data[f"cp{i}"].data.set.charging_ev_data.ev_template.data.nominal_difference = 2
Expand Down
4 changes: 2 additions & 2 deletions packages/control/algorithm/surplus_controlled_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def test_limit_adjust_current(new_current: float, expected_current: float, monke

@pytest.mark.parametrize("phases, required_currents, expected_currents",
[
pytest.param(1, [10, 0, 0], [32, 0, 0]),
pytest.param(1, [0, 15, 0], [0, 32, 0]),
pytest.param(1, [10, 0, 0], [16, 0, 0]),
pytest.param(1, [0, 15, 0], [0, 16, 0]),
pytest.param(3, [10]*3, [16]*3),
])
def test_set_required_current_to_max(phases: int,
Expand Down
2 changes: 1 addition & 1 deletion packages/control/ev.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class EvTemplateData:
control_pilot_interruption_duration: int = 4
average_consump: float = 17000
min_current: int = 6
max_current_single_phase: int = 32
max_current_single_phase: int = 16
battery_capacity: float = 82000
efficiency: float = 90
nominal_difference: float = 1
Expand Down

0 comments on commit 5cdab51

Please sign in to comment.