Compare commits

...

3 Commits

Author SHA1 Message Date
Matthias
dccd0dcb9e Merge branch 'develop' into fix/tz-naive-predictions 2025-10-24 07:04:52 +02:00
Matthias
a4c82a95a0 Merge branch 'develop' into fix/tz-naive-predictions 2025-08-07 06:35:35 +02:00
Robert Caulk
174d85f995 fix: Try removing any timezone awareness on boot? 2025-07-18 10:25:23 +02:00

View File

@@ -301,8 +301,8 @@ class FreqaiDataDrawer:
hist_preds = self.historic_predictions[pair].copy()
# ensure both dataframes have the same date format so they can be merged
new_pred["date_pred"] = pd.to_datetime(new_pred["date_pred"])
hist_preds["date_pred"] = pd.to_datetime(hist_preds["date_pred"])
new_pred["date_pred"] = pd.to_datetime(new_pred["date_pred"]).dt.tz_localize(None)
hist_preds["date_pred"] = pd.to_datetime(hist_preds["date_pred"]).dt.tz_localize(None)
# find the closest common date between new_pred and historic predictions
# and cut off the new_pred dataframe at that date