Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion solardatatools/data_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def run_pipeline(
# Related to this bug fix:
# https://github.com/NatLabRockies/solar-data-tools/commit/ae0037771c09ace08bff5a4904475da606e934da
old_index = self.data_frame.index.copy()
self.data_frame.index = self.data_frame.index.shift(tz_offset, freq="H")
self.data_frame.index = self.data_frame.index.shift(tz_offset, freq="h")
self.data_frame = self.data_frame.reindex(
index=old_index, method="nearest", limit=1
).fillna(0)
Expand Down
2 changes: 1 addition & 1 deletion solardatatools/time_axis_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def standardize_time_axis(
# then apply a correction
if correct_tz and power_col is not None:
if np.abs(sn_deviation) > 4:
df.index = df.index.shift(sn_deviation, freq="H")
df.index = df.index.shift(sn_deviation, freq="h")
else:
sn_deviation = 0
else:
Expand Down
Loading