issue_comments: 780833545
This data as json
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/3245#issuecomment-780833545 | https://api.github.com/repos/pydata/xarray/issues/3245 | 780833545 | MDEyOklzc3VlQ29tbWVudDc4MDgzMzU0NQ== | 2448579 | 2021-02-17T20:30:04Z | 2021-02-17T23:22:19Z | MEMBER | My impression was that the ``` python def as_numpy(self): # needs cupy special handling data = self.data if isinstance(data, cupy_array_type): raise NotImplementedError else: return self.copy(data=np.array(data)) def to_numpy(self): """Coerces to and returns a numpy.ndarray""" return self.as_numpy().data ``` |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
484240082 |