home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 132535802

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
132535802 MDU6SXNzdWUxMzI1MzU4MDI= 753 creating DataArray from list of complex DataArray 11950875 closed 0     3 2016-02-09T21:13:50Z 2016-02-11T16:11:52Z 2016-02-11T16:11:52Z CONTRIBUTOR      

The DataArray constructor fails with a TypeError in the following case:

c1 = xr.DataArray(np.array((1, 2), dtype=np.complex)) c2 = xr.DataArray(np.array((3, 4), dtype=np.complex)) test = xr.DataArray([c1, c2])

The constructor works fine if c1 and c2 are np.arrays:

c1 = np.array((1, 2), dtype=np.complex) c2 = np.array((3, 4), dtype=np.complex) test = xr.DataArray([c1,c2])

and constructing the array with concatenation also works:

c1 = xr.DataArray(np.array((1, 2), dtype=np.complex)) c2 = xr.DataArray(np.array((3, 4), dtype=np.complex)) test = xr.concat([c1, c2], 'new')

Any thoughts on how to fix this?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/753/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 0.558ms · About: xarray-datasette