Skip to content

Commit

Permalink
fixing failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joda9 committed Aug 26, 2024
1 parent 412cb9f commit f502ca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/io/test_timeseries_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ def test_load_time_series_demandlib(self):
assert np.isclose(load.loc[timeindex[453], "cts"], 8.33507e-05)
assert np.isclose(load.loc[timeindex[13], "residential"], 1.73151e-04)
assert np.isclose(load.loc[timeindex[6328], "agricultural"], 1.01346e-04)
assert np.isclose(
load.loc[timeindex[4325], "industrial"], 9.876543209876541e-05
)
assert np.isclose(load.loc[timeindex[4325], "industrial"], 9.87654320e-05)
assert np.isclose(load.sum()["cts"], 1.0)
assert np.isclose(load.sum()["residential"], 1.0)
assert np.isclose(load.sum()["agricultural"], 1.0)
Expand Down
6 changes: 3 additions & 3 deletions tests/network/test_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1565,9 +1565,9 @@ def test_predefined_conventional_loads_by_sector(self, caplog):
index=index,
columns=["cts", "residential", "agricultural", "industrial"],
data=[
[0.000059711, 0.0000782190, 0.00006540, 0.000098765],
[0.000052590, 0.0000563428, 0.00006110, 0.000098765],
[0.000045927, 0.0000451043, 0.00005843, 0.000098765],
[0.000059711, 0.0000782190, 0.00006540, 0.00009876],
[0.000052590, 0.0000563428, 0.00006110, 0.00009876],
[0.000045927, 0.0000451043, 0.00005843, 0.00009876],
],
)

Expand Down

0 comments on commit f502ca9

Please sign in to comment.