Skip to content

Commit

Permalink
test total boiler results
Browse files Browse the repository at this point in the history
  • Loading branch information
nllong committed Jan 26, 2025
1 parent 2a23972 commit c595fb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_urbanopt_des.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def test_resample_and_convert_to_df(self):
# save the dataframes
data.save_dataframes()

# for now, just ensure that the power_5, 15, and 60 minutes were persisted
# ensure that the power_5, 15, and 60 minutes were persisted
for interval in [5, 15, 60]:
self.assertTrue((self.output_dir / f"power_{interval}min.csv").exists())

# check the sum of the Total Boilers, should be 1376600000 +/- 1E6
self.assertAlmostEqual(data.min_60["Total Boilers"].sum(), 1400000000, delta=1e8)

0 comments on commit c595fb8

Please sign in to comment.