mattritchey commited on
Commit
a82dbac
·
1 Parent(s): fc4a91d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def crop_hail_jpg_filter(f, crop_coords, scaling_factor=255):
65
 
66
  @st.cache_data
67
  def get_data(start_date,end_date,crop_coords):
68
- files = glob.glob('png/2022/**/*.png', recursive=True)
69
 
70
  files_dates = np.array([int(f[-19:-11]) for f in files])
71
  mask = np.where((files_dates >= int(start_date)) & (
 
65
 
66
  @st.cache_data
67
  def get_data(start_date,end_date,crop_coords):
68
+ files = glob.glob(f'png/{start_date[:4]}/**/*.png', recursive=True)
69
 
70
  files_dates = np.array([int(f[-19:-11]) for f in files])
71
  mask = np.where((files_dates >= int(start_date)) & (