From 59b1a8fc0d420fb7e3cd16c5d4dc59ec2261dacb Mon Sep 17 00:00:00 2001 From: zherbz Date: Tue, 26 Nov 2024 15:17:58 +0000 Subject: [PATCH] renamed the col Date to time for consistency with other methods in library --- tests/test_plan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_plan.py b/tests/test_plan.py index a6146bf..26c24e0 100644 --- a/tests/test_plan.py +++ b/tests/test_plan.py @@ -625,7 +625,7 @@ def test_observed_timeseries_input_flow(): ds = phdf.observed_timeseries_input(vartype="Flow") df = ds.sel(refln_name="Denton-Justin_RL").to_dataframe().dropna().reset_index() valid_df = pd.read_csv(TEST_CSV / "Denton-Justin_RL_Flow.csv") - valid_df["Date"] = pd.to_datetime(valid_df["Date"]) + valid_df["time"] = pd.to_datetime(valid_df["time"]) assert_frame_equal(df, valid_df) @@ -636,7 +636,7 @@ def test_observed_timeseries_input_stage(): ds.sel(refpt_name="Grapevine_Lake_RP").to_dataframe().dropna().reset_index() ) valid_df = pd.read_csv(TEST_CSV / "Grapevine_Lake_RP_Stage.csv") - valid_df["Date"] = pd.to_datetime(valid_df["Date"]) + valid_df["time"] = pd.to_datetime(valid_df["time"]) assert_frame_equal(df, valid_df)