Skip to content

Commit 7630e42

Browse files
author
Amine Aherbil
committed
fix black formatting
1 parent 25f2145 commit 7630e42

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ftio/prediction/online_analysis.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,12 @@ def window_adaptation(
303303
# Build change point info directly - no regex needed
304304
change_point_info = None
305305
if change_detected:
306-
old_freq_val = float(old_freq) if old_freq is not None and not np.isnan(old_freq) else 0.0
307-
new_freq_val = float(new_freq) if new_freq is not None and not np.isnan(new_freq) else 0.0
306+
old_freq_val = (
307+
float(old_freq) if old_freq is not None and not np.isnan(old_freq) else 0.0
308+
)
309+
new_freq_val = (
310+
float(new_freq) if new_freq is not None and not np.isnan(new_freq) else 0.0
311+
)
308312
freq_change_pct = (
309313
abs(new_freq_val - old_freq_val) / old_freq_val * 100
310314
if old_freq_val > 0

0 commit comments

Comments
 (0)