Skip to content

Commit

Permalink
Allow cells to be None when stacking
Browse files Browse the repository at this point in the history
  • Loading branch information
Clay Harrison committed Nov 19, 2024
1 parent 42ceaee commit fe2cf5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ascat/read_native/swath_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def stack_to_cell_files(self,
ds_list = []
cell_fnames = []
for i, c in enumerate(unique_cells):
if c in cells:
if (cells is None) or (c in cells):
cell_ds = ds.isel(obs=slice(cell_counts[i], cell_counts[i+1]))
if len(cell_ds) == 0:
continue
Expand Down

0 comments on commit fe2cf5e

Please sign in to comment.