nikethanreddy commited on
Commit
1489c23
·
verified ·
1 Parent(s): 62c6555

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -268,7 +268,7 @@ def get_latest_data_sequence(sequence_length: int, latitude: float, longitude: f
268
  print("Warning: df_processed.index is timezone-naive. Localizing to UTC.")
269
  df_processed.index = df_processed.index.tz_localize('UTC')
270
 
271
- df_recent_processed = df_processed[(df_processed.index >= window_start_time_ts) &amp; (df_processed.index <= window_end_time_ts)].copy()
272
  print(f"Filtered to recent processing window ({processing_window_hours}hrs). Shape: {df_recent_processed.shape}")
273
  # print(f"df_recent_processed head:\n{df_recent_processed.head().to_string()}")
274
  # print(f"df_recent_processed NaNs before dropna:\n{df_recent_processed.isna().sum().to_string()}")
 
268
  print("Warning: df_processed.index is timezone-naive. Localizing to UTC.")
269
  df_processed.index = df_processed.index.tz_localize('UTC')
270
 
271
+ df_recent_processed = df_processed[(df_processed.index >= window_start_time_ts) & (df_processed.index <= window_end_time_ts)].copy()
272
  print(f"Filtered to recent processing window ({processing_window_hours}hrs). Shape: {df_recent_processed.shape}")
273
  # print(f"df_recent_processed head:\n{df_recent_processed.head().to_string()}")
274
  # print(f"df_recent_processed NaNs before dropna:\n{df_recent_processed.isna().sum().to_string()}")