issue_comments
11 rows where author_association = "MEMBER" and issue = 868907284 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- 'NaT' as fill value and netcdf export · 11 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
831298605 | https://github.com/pydata/xarray/issues/5223#issuecomment-831298605 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgzMTI5ODYwNQ== | benbovy 4160723 | 2021-05-03T14:31:14Z | 2021-05-03T14:32:07Z | MEMBER | I guess your last example works because Xarray's The key thing is adding
Maybe we could borrow some logic from I think that we can then either close this issue or move it to Xarray-simlab. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
831130073 | https://github.com/pydata/xarray/issues/5223#issuecomment-831130073 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgzMTEzMDA3Mw== | benbovy 4160723 | 2021-05-03T09:09:25Z | 2021-05-03T09:09:25Z | MEMBER | I checked with a very basic example: ```python import numpy as np import xarray as xr p_var = np.full((2, 2), np.datetime64('2000-01-01'), dtype='datetime64[ns]') ds = xr.Dataset({'p__var': (('main', 'idx'), var)}) ds.to_netcdf('test.nc', engine='netcdf4') # works! ``` The only difference with the example in your notebook is that in the example above (side note: with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
829016596 | https://github.com/pydata/xarray/issues/5223#issuecomment-829016596 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyOTAxNjU5Ng== | benbovy 4160723 | 2021-04-29T07:50:08Z | 2021-04-29T07:50:08Z | MEMBER | @jvail could you provide a small reproducible example? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
828292425 | https://github.com/pydata/xarray/issues/5223#issuecomment-828292425 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyODI5MjQyNQ== | benbovy 4160723 | 2021-04-28T09:11:34Z | 2021-04-28T09:11:34Z | MEMBER | Opened #5226 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
828242346 | https://github.com/pydata/xarray/issues/5223#issuecomment-828242346 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyODI0MjM0Ng== | benbovy 4160723 | 2021-04-28T08:02:54Z | 2021-04-28T08:03:38Z | MEMBER | So maybe the Zarr backend should pop |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
828231169 | https://github.com/pydata/xarray/issues/5223#issuecomment-828231169 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyODIzMTE2OQ== | benbovy 4160723 | 2021-04-28T07:47:44Z | 2021-04-28T07:47:44Z | MEMBER | For more context, xarray-simlab doesn't set the So maybe the original issue should be solved there? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
828230957 | https://github.com/pydata/xarray/issues/5223#issuecomment-828230957 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyODIzMDk1Nw== | max-sixty 5635139 | 2021-04-28T07:47:25Z | 2021-04-28T07:47:25Z | MEMBER | OK great! Does that mean this is solved? Or you need it on |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
828162977 | https://github.com/pydata/xarray/issues/5223#issuecomment-828162977 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyODE2Mjk3Nw== | max-sixty 5635139 | 2021-04-28T05:48:25Z | 2021-04-28T05:48:25Z | MEMBER | Ah so it is a special attrs... Does putting it on |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
828156283 | https://github.com/pydata/xarray/issues/5223#issuecomment-828156283 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyODE1NjI4Mw== | max-sixty 5635139 | 2021-04-28T05:32:20Z | 2021-04-28T05:32:20Z | MEMBER | Please could I ask once more — forgive me if I'm missing something but I did ask this a week ago and still don't understand https://github.com/pydata/xarray/discussions/5200#discussioncomment-638329:
It's trying to serialize it, as it would any other attrs. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
827675422 | https://github.com/pydata/xarray/issues/5223#issuecomment-827675422 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyNzY3NTQyMg== | keewis 14808389 | 2021-04-27T15:00:40Z | 2021-04-27T18:15:02Z | MEMBER |
that might be a bug in traceback when trying to save a datetime array attribute```pytb TypeError Traceback (most recent call last) <ipython-input-1-9d07cb2115e9> in <module> 1 import numpy as np 2 import xarray as xr ----> 3 xr.Dataset(attrs={"_FillValue": np.array("NaT", dtype="M")}).to_netcdf("test.nc") .../xarray/core/dataset.py in to_netcdf(self, path, mode, format, group, engine, encoding, unlimited_dims, compute, invalid_netcdf) 1752 from ..backends.api import to_netcdf 1753 -> 1754 return to_netcdf( 1755 self, 1756 path, .../xarray/backends/api.py in to_netcdf(dataset, path_or_file, mode, format, group, engine, encoding, unlimited_dims, compute, multifile, invalid_netcdf) 1066 # TODO: allow this work (setting up the file for writing array data) 1067 # to be parallelized with dask -> 1068 dump_to_store( 1069 dataset, store, writer, encoding=encoding, unlimited_dims=unlimited_dims 1070 ) .../xarray/backends/api.py in dump_to_store(dataset, store, writer, encoder, encoding, unlimited_dims) 1113 variables, attrs = encoder(variables, attrs) 1114 -> 1115 store.store(variables, attrs, check_encoding, writer, unlimited_dims=unlimited_dims) 1116 1117 .../xarray/backends/common.py in store(self, variables, attributes, check_encoding_set, writer, unlimited_dims) 263 variables, attributes = self.encode(variables, attributes) 264 --> 265 self.set_attributes(attributes) 266 self.set_dimensions(variables, unlimited_dims=unlimited_dims) 267 self.set_variables( .../xarray/backends/common.py in set_attributes(self, attributes) 280 """ 281 for k, v in attributes.items(): --> 282 self.set_attribute(k, v) 283 284 def set_variables(self, variables, check_encoding_set, writer, unlimited_dims=None): .../xarray/backends/netCDF4_.py in set_attribute(self, key, value) 449 self.ds.setncattr_string(key, value) 450 else: --> 451 self.ds.setncattr(key, value) 452 453 def encode_variable(self, variable): src/netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Dataset.setncattr() src/netCDF4/_netCDF4.pyx in netCDF4._netCDF4._set_att() TypeError: illegal data type for attribute b'_FillValue', must be one of dict_keys(['S1', 'i1', 'u1', 'i2', 'u2', 'i4', 'u4', 'i8', 'u8', 'f4', 'f8']), got M8 ```Also, it's strange that As a summary, I think you should open this issue on the issue tracker of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 | |
827803653 | https://github.com/pydata/xarray/issues/5223#issuecomment-827803653 | https://api.github.com/repos/pydata/xarray/issues/5223 | MDEyOklzc3VlQ29tbWVudDgyNzgwMzY1Mw== | max-sixty 5635139 | 2021-04-27T18:02:38Z | 2021-04-27T18:02:38Z | MEMBER |
I asked for reference for this in #5200. Agree this is surprising. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'NaT' as fill value and netcdf export 868907284 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 3