Skip to content

Commit

Permalink
fix compatibility mypy numpy==2.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
  • Loading branch information
mgovers committed Dec 9, 2024
1 parent e7927e8 commit 6c74e26
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/unit/validation/test_input_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,14 @@ def original_data() -> dict[ComponentType, np.ndarray]:
asym_voltage_sensor = initialize_array(DatasetType.input, ComponentType.asym_voltage_sensor, 4)
asym_voltage_sensor["id"] = [7, 8, 9, 10]
asym_voltage_sensor["measured_object"] = [2, 3, 1, 200]
asym_voltage_sensor["u_measured"] = [
[10.5e3, 10.4e3, 10.6e3],
[np.nan, np.nan, np.nan],
[0, 0, 0],
[-1e4, 1e4, 1e4],
]
asym_voltage_sensor["u_measured"] = np.array(
[
[10.5e3, 10.4e3, 10.6e3],
[np.nan, np.nan, np.nan],
[0, 0, 0],
[-1e4, 1e4, 1e4],
]
)
asym_voltage_sensor["u_sigma"] = [1.0, np.nan, 0.0, -1.0]

sym_power_sensor = initialize_array(DatasetType.input, ComponentType.sym_power_sensor, 4)
Expand Down

0 comments on commit 6c74e26

Please sign in to comment.