issues: 834368403
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
834368403 | MDU6SXNzdWU4MzQzNjg0MDM= | 5049 | xarray.DataArray > None kills kernel | 22258697 | closed | 0 | 8 | 2021-03-18T04:03:35Z | 2021-03-25T06:54:36Z | 2021-03-25T06:54:36Z | NONE | What happened:
TypeError Traceback (most recent call last) <ipython-input-3-ee328c447a90> in <module> 1 import xarray as xr 2 import numpy as np ----> 3 xr.DataArray(np.array([1,2,3, np.nan])) > None ~/miniconda3/envs/pybayts/lib/python3.7/site-packages/xarray/core/dataarray.py in func(self, other) 2990 variable = ( 2991 f(self.variable, other_variable) -> 2992 if not reflexive 2993 else f(other_variable, self.variable) 2994 ) ~/miniconda3/envs/pybayts/lib/python3.7/site-packages/xarray/core/variable.py in func(self, other) 2300 new_data = ( 2301 f(self_data, other_data) -> 2302 if not reflexive 2303 else f(other_data, self_data) 2304 ) TypeError: '>' not supported between instances of 'float' and 'NoneType' ``` What you expected to happen: An error. Minimal Complete Verifiable Example:
Anything else we need to know?: Environment: Output of <tt>xr.show_versions()</tt>INSTALLED VERSIONS ------------------ commit: None python: 3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 16:07:37) [GCC 9.3.0] python-bits: 64 OS: Linux OS-release: 5.4.0-66-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 libhdf5: None libnetcdf: None xarray: 0.17.0 pandas: 1.2.3 numpy: 1.20.1 scipy: 1.6.0 netCDF4: None pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: None nc_time_axis: None PseudoNetCDF: None rasterio: 1.2.1 cfgrib: None iris: None bottleneck: None dask: None distributed: None matplotlib: 3.3.4 cartopy: None seaborn: 0.11.1 numbagg: None pint: None setuptools: 49.6.0.post20210108 pip: 21.0.1 conda: None pytest: None IPython: 7.21.0 sphinx: None [test.zip](https://github.com/pydata/xarray/files/6161220/test.zip) |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/5049/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |