Skip to content
Snippets Groups Projects
Commit 2978a31b authored by tomrink's avatar tomrink
Browse files

minor...

parent e7dedd29
Branches
No related tags found
No related merge requests found
...@@ -224,6 +224,8 @@ def run_one(data_h5f, data_tiles, tile_width=64, kernel_size=9): ...@@ -224,6 +224,8 @@ def run_one(data_h5f, data_tiles, tile_width=64, kernel_size=9):
for param in data_params: for param in data_params:
try: try:
grd = get_grid_values(data_h5f, param, 0, 0, None, num_lines, num_pixels, range_name=None) grd = get_grid_values(data_h5f, param, 0, 0, None, num_lines, num_pixels, range_name=None)
if (np.sum(np.isnan(grd)) / grd.size) > 0.10: # skip if more than 10% missing
return
grd_s.append(grd) grd_s.append(grd)
except Exception as e: except Exception as e:
print(e) print(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment