Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeyers committed Sep 25, 2023
1 parent 208a526 commit 9c9b66b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/solardatatools/test_data_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class TestDataHandler(unittest.TestCase):
def test_load_and_run(self):
filepath = Path(__file__).parent.parent
data_file_path = filepath / "fixtures" / "data_transforms" / "timeseries.csv"
df = pd.read_csv(data_file_path, parse_dates=[1], index_col=1)
df = pd.read_csv(data_file_path, parse_dates=[0], index_col=0)
dh = DataHandler(df)
dh.fix_dst()
dh.run_pipeline(power_col="ac_power", fix_shifts=True, verbose=False)
dh.run_pipeline(power_col="ac_power_01", fix_shifts=True, verbose=False)
# dh.report()
self.assertAlmostEqual(dh.capacity_estimate, 6.7453649044036865, places=2)
self.assertAlmostEqual(dh.data_quality_score, 0.9948186528497409, places=3)
Expand Down

0 comments on commit 9c9b66b

Please sign in to comment.