Since the data read-in module was built, xarray has added explicit indexing, which was causing a warning (read.py:599: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.) to appear during the reader.load() step when coordinate dimensions were manipulated internally. This PR updates that portion of the code to use .swap_dims, greatly simplifying it and removing the warning.
Since the data read-in module was built, xarray has added explicit indexing, which was causing a warning (
read.py:599: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
) to appear during thereader.load()
step when coordinate dimensions were manipulated internally. This PR updates that portion of the code to use.swap_dims
, greatly simplifying it and removing the warning.