From 9c9b66b2477b35009b2f7cbe3c4e8abfb157c48d Mon Sep 17 00:00:00 2001 From: Meyers-Im Date: Mon, 25 Sep 2023 16:36:13 -0700 Subject: [PATCH] bugs --- tests/solardatatools/test_data_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/solardatatools/test_data_handler.py b/tests/solardatatools/test_data_handler.py index 3af06e75..f390579c 100644 --- a/tests/solardatatools/test_data_handler.py +++ b/tests/solardatatools/test_data_handler.py @@ -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)