Description
Evenly sampled coordinates should retain step even with length of 1, for example from a patch.select.
Example
import dascore as dc
patch = dc.get_example_patch()
sub_patch = patch.select(time=1, samples=1)
time = sub_patch.get_coord("time")
assert time.step is not None
Expected behavior
The above test should pass, meaning the time coordinate, although of length 1, should retain its step.
Versions
- OS [e.g. Ubuntu 20.04]:
- DASCore Version [e.g. 0.0.5]:
- Python Version [e.g. 3.10]: