Skip to content

Commit

Permalink
allow for unsigned integers
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds authored Aug 4, 2024
1 parent ac42e28 commit 6aa2bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbitinfo/xbitinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def _get_bitinformation_kwargs_handler(da, kwargs):
"""Helper function to preprocess kwargs args of :py:func:`xbitinfo.xbitinfo.get_bitinformation`."""
kwargs_var = kwargs.copy()
if "masked_value" not in kwargs_var:
if da.dtype.kind == "i":
if da.dtype.kind == "i" or da.dtype.kind == "u":
logging.warning(
"No masked value given for integer type variable. Assuming no mask to apply."
)
Expand Down

0 comments on commit 6aa2bc4

Please sign in to comment.