Skip to content

Commit 0f076a6

Browse files
committed
set units as optional
1 parent 860aad2 commit 0f076a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pintxarray/accessors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def dequantify(self):
374374
}
375375
return Dataset(dequantified_vars, coords=self.ds.coords, attrs=self.ds.attrs)
376376

377-
def to(self, units, **unit_kwargs):
377+
def to(self, units=None, **unit_kwargs):
378378
units = either_dict_or_kwargs(units, unit_kwargs, "to")
379379

380380
return conversion.convert_units(self.ds, units)

0 commit comments

Comments
 (0)