issue_comments
1 row where issue = 865003095 and user = 34353851 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- DataArray attributes not present in DataSet. Coherency problem between DataSet and NetCDF file · 1 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
829638401 | https://github.com/pydata/xarray/issues/5208#issuecomment-829638401 | https://api.github.com/repos/pydata/xarray/issues/5208 | MDEyOklzc3VlQ29tbWVudDgyOTYzODQwMQ== | JavierRuano 34353851 | 2021-04-29T22:33:05Z | 2021-04-29T22:33:05Z | NONE | import numpy as np import xarray as xr Creates DataArraysnt = 4 time = np.arange (nt) * 86400.0 time = xr.DataArray (time, coords=[time,], dims=["time",]) aa = time * 2.0 Adding attributes to DataArraystime.attrs['units'] = "second" aa.attrs['units'] = "whatever" Attributes are visible in the DataArraysprint ('----------> time DataArray: ') print (time) print ('----------> aa DataArray : ' ) print (aa) print ('----------> aa attributes : ') print (aa.attrs ) Creating a Datasetds = xr.Dataset( { "aa": (["time",], aa), }, coords={"time": (["time",], time), }, ) Attributes are not visible in the Datasetprint ('----------> DataSet before setting attributes') print (ds) My request #1 : attributes of the DataArrays should be added to the DataSet (may be optional)print ('----------> Attributes of aa in DataSet : none') print ( ds['aa'].attrs ) print ('----------> Attributes of aa outside DataSet : still here') print ( aa.attrs ) print ('----------> Attributes are not written to the NetCDF file') ds.to_netcdf ('sample1.nc') Adding attributes directly to the DatasetAttributes are still not visible in the Datasetprint ('----------> DataSet after setting attributes : attributes not shown' )
ds=ds.assign_attrs({'Visible':'NotInvisibleMan'})
ds['time'].attrs['units']="second"
ds['aa'].attrs['units']="whatever" |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray attributes not present in DataSet. Coherency problem between DataSet and NetCDF file 865003095 |
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 1