Skip to content

Commit 2715cbf

Browse files
committed
ruff formating
1 parent a936042 commit 2715cbf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

iglu_python/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,20 +221,20 @@ def CGMS2DayByDay( # noqa: C901
221221
# Create time grid (pandas 1.5.x compatible)
222222
min_time = data.index.min()
223223
max_time = data.index.max()
224-
224+
225225
# Use compatible floor/ceil methods for pandas 1.5.x
226-
if hasattr(min_time, 'floor'):
226+
if hasattr(min_time, "floor"):
227227
start_time = min_time.floor("D")
228228
else:
229229
# Fallback for pandas 1.5.x
230230
start_time = pd.Timestamp(min_time.date())
231-
232-
if hasattr(max_time, 'ceil'):
231+
232+
if hasattr(max_time, "ceil"):
233233
end_time = max_time.ceil("D")
234234
else:
235235
# Fallback for pandas 1.5.x
236236
end_time = pd.Timestamp(max_time.date()) + pd.Timedelta(days=1)
237-
237+
238238
time_grid = pd.date_range(start=start_time, end=end_time, freq=f"{dt0}min")
239239
if is_iglu_r_compatible():
240240
# remove the first time point

0 commit comments

Comments
 (0)