Closed d-chambers closed 8 months ago
patch.set_units should allow units to be removed used None as the argument. Currently this doesn't work.
patch.set_units
None
import dascore as dc patch = dc.get_example_patch().set_units("m") new = patch.set_units(None) assert new.attrs.data_units is None
The above code should work.
Description
patch.set_units
should allow units to be removed usedNone
as the argument. Currently this doesn't work.Example
Expected behavior
The above code should work.
Versions