html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/6427#issuecomment-1085167329,https://api.github.com/repos/pydata/xarray/issues/6427,1085167329,IC_kwDOAMm_X85Arlbh,7178572,2022-03-31T21:59:57Z,2022-03-31T21:59:57Z,NONE,Sorry for not explaining it very well initially,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1186949971 https://github.com/pydata/xarray/issues/6427#issuecomment-1085147507,https://api.github.com/repos/pydata/xarray/issues/6427,1085147507,IC_kwDOAMm_X85Arglz,2448579,2022-03-31T21:38:35Z,2022-03-31T21:38:35Z,MEMBER,Ah thanks a lot for clarifying.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1186949971 https://github.com/pydata/xarray/issues/6427#issuecomment-1085141253,https://api.github.com/repos/pydata/xarray/issues/6427,1085141253,IC_kwDOAMm_X85ArfEF,7178572,2022-03-31T21:32:17Z,2022-03-31T21:32:17Z,NONE,"@dcherian I am aware that floats are invalid for inverting but that isn't the issue I'm raising. I think XArray should throw a TypeError for this case, like Numpy does. Currently it throws a ValueError indicating something is wrong with the variable dimensions. This is confusing and goes against the contract.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1186949971 https://github.com/pydata/xarray/issues/6427#issuecomment-1084932873,https://api.github.com/repos/pydata/xarray/issues/6427,1084932873,IC_kwDOAMm_X85AqsMJ,2448579,2022-03-31T18:02:14Z,2022-03-31T18:02:14Z,MEMBER,Inverting is a boolean op so you'll need bool inputs. Note this doesn't work for numpy either `~np.array([1.0])`. Convert to bool using `astype` first.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1186949971 https://github.com/pydata/xarray/issues/6427#issuecomment-1083600343,https://api.github.com/repos/pydata/xarray/issues/6427,1083600343,IC_kwDOAMm_X85Alm3X,7178572,2022-03-30T20:36:14Z,2022-03-30T20:42:48Z,NONE,"It looks like this happens because `f(self.variable.data, ...)` in `DataArray._unary_op` returns `NotImplemented` which the rest of the machinery doesn't know how to handle. Specifically `dask.array.Array.__invert__` returns `NotImplemented` when the dtype is float.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1186949971