Spaces:
Sleeping
Sleeping
mattritchey
commited on
Commit
•
909b482
1
Parent(s):
e3aa2de
Update app.py
Browse files
app.py
CHANGED
@@ -49,8 +49,8 @@ def get_data(row, col, radius=8):
|
|
49 |
]
|
50 |
all_data = []
|
51 |
all_dates = []
|
52 |
-
for
|
53 |
-
with h5py.File(
|
54 |
data = f['hail'][:, row - radius: row + radius+ 1, col-radius: col+radius+1]
|
55 |
dates = f['dates'][:]
|
56 |
all_data.append(data)
|
@@ -222,7 +222,7 @@ files = [
|
|
222 |
all_data = []
|
223 |
all_dates = []
|
224 |
for i in files:
|
225 |
-
with h5py.File(
|
226 |
data = f['hail'][:, row - radius: row + radius+ 1, col-radius: col+radius+1]
|
227 |
dates = f['dates'][:]
|
228 |
all_data.append(data)
|
|
|
49 |
]
|
50 |
all_data = []
|
51 |
all_dates = []
|
52 |
+
for i in files:
|
53 |
+
with h5py.File(i, 'r') as f:
|
54 |
data = f['hail'][:, row - radius: row + radius+ 1, col-radius: col+radius+1]
|
55 |
dates = f['dates'][:]
|
56 |
all_data.append(data)
|
|
|
222 |
all_data = []
|
223 |
all_dates = []
|
224 |
for i in files:
|
225 |
+
with h5py.File(i, 'r') as f:
|
226 |
data = f['hail'][:, row - radius: row + radius+ 1, col-radius: col+radius+1]
|
227 |
dates = f['dates'][:]
|
228 |
all_data.append(data)
|