Skip to content

Commit

Permalink
don't drop requested variables with dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 committed Nov 14, 2023
1 parent 9621b7f commit ee3242c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions icepyx/core/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,9 @@ def _combine_nested_vars(is2ds, ds, grp_path, wanted_dict):
except (AttributeError, KeyError):
pass

ds = ds[grp_spec_vars].reset_coords()
ds = ds[grp_spec_vars].swap_dims({"delta_time": "photon_idx"})
is2ds = is2ds.assign(ds)

# manually remove delta time as a dimension
if "delta_time" in is2ds.dims:
is2ds = is2ds.drop_dims("delta_time")

return is2ds

def load(self):
Expand Down

0 comments on commit ee3242c

Please sign in to comment.