From 95dd633806a7c4ca6ea2746ab508e3238912680d Mon Sep 17 00:00:00 2001 From: Christoph Schrade Date: Tue, 7 May 2024 18:11:59 +0200 Subject: [PATCH] fix timestamp --- algo/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algo/operator.py b/algo/operator.py index 71507b1..42c3e7a 100644 --- a/algo/operator.py +++ b/algo/operator.py @@ -67,7 +67,7 @@ def init(self, *args, **kwargs): os.mkdir(self.config.data_path) self.init_phase_duration = pd.Timedelta(self.config.init_phase_length, self.config.init_phase_level) - self.operator_start_time = setup_operator_starttime(self.config.data_path).tz_localize(None) + self.operator_start_time = pd.Timestamp(setup_operator_starttime(self.config.data_path)).tz_localize(None) self.first_data_time = load(self.config.data_path, "first_data_time.pickle") self.device_type = load(self.config.data_path, "device_type.pickle") self.init_median = load(self.config.data_path, "init_median.pickle")