issues
2 rows where repo = 13221727, type = "issue" and user = 8796694 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date), closed_at (date)
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1267819197 | I_kwDOAMm_X85LkWK9 | 6687 | Link to "the testing page of the wiki" is broken in contributing.rst | taobrienlbl 8796694 | closed | 0 | 5 | 2022-06-10T17:18:58Z | 2024-01-16T12:10:15Z | 2024-01-16T12:10:15Z | CONTRIBUTOR | What is your issue?
Because of this, new contributors are unable to find information about "If your test requires working with files or network connectivity..." |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6687/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
1266738659 | I_kwDOAMm_X85LgOXj | 6684 | pass `**kwargs` through from `save_mfdataset` to `to_netcdf` | taobrienlbl 8796694 | closed | 0 | 2 | 2022-06-09T22:37:43Z | 2022-06-11T18:26:47Z | 2022-06-11T18:26:47Z | CONTRIBUTOR | Is your feature request related to a problem?Based on the documentation of
But it appears that the
create a timeseries to store in a netCDF filetimes = list(range(0,3652)) time = xr.DataArray(times, dims = ("time",)) create a simple dataset to write using save_mfdatasettest_ds = xr.Dataset() test_ds['time'] = time tell netCDF to write the times as doublesencoding = dict(time = dict(dtype = "double")) set the output file nameoutput_path = "test.nc" the test fails when encoding is added as an argument to save_mfdatasetbut it works if instead the dataset is saved usingtest_ds.to_netcdf(output_path, encoding = encoding)xr.save_mfdataset([test_ds], [output_path], encoding = encoding) ```
This appears to be because This means that datasets written with Describe the solution you'd likeA simple fix, which I have verified, is to modify ```diff diff --git a/xarray/backends/api.py b/xarray/backends/api.py index d1166624..8baca58c 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -1258,7 +1258,7 @@ def dump_to_store( def save_mfdataset( - datasets, paths, mode="w", format=None, groups=None, engine=None, compute=True + datasets, paths, mode="w", format=None, groups=None, engine=None, compute=True, **kwargs ): """Write multiple datasets to disk as netCDF files simultaneously. @@ -1280,6 +1280,7 @@ def save_mfdataset(
these locations will be overwritten.
format : {"NETCDF4", "NETCDF4_CLASSIC", "NETCDF3_64BIT", \
"NETCDF3_CLASSIC"}, optional
+ **kwargs : additional arguments are passed along to
@@ -1358,7 +1359,7 @@ def save_mfdataset( writers, stores = zip( [ to_netcdf( - ds, path, mode, format, group, engine, compute=compute, multifile=True + ds, path, mode, format, group, engine, compute=compute, multifile=True, *kwargs ) for ds, path, group in zip(datasets, paths, groups) ] ``` When a version of
Describe alternatives you've consideredI attempted to set the encoding dictionary directly on the dataset prior to calling Additional contextHere is version information, in case it is relevant: ```bash $ python3 -c 'import xarray; print(xarray.show_versions())' INSTALLED VERSIONScommit: None python: 3.7.4 (default, Aug 13 2019, 15:17:50) [Clang 4.0.1 (tags/RELEASE_401/final)] python-bits: 64 OS: Darwin OS-release: 21.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.4 libnetcdf: 4.6.1 xarray: 0.15.0 pandas: 0.25.1 numpy: 1.17.2 scipy: 1.6.3 netCDF4: 1.4.2 pydap: installed h5netcdf: None h5py: 2.9.0 Nio: None zarr: None cftime: 1.1.1.1 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: 1.2.1 dask: 2.5.2 distributed: 2.5.2 matplotlib: 3.1.3 cartopy: None seaborn: 0.9.0 numbagg: None setuptools: 41.4.0 pip: 19.2.3 conda: 4.8.3 pytest: 5.2.1 IPython: 7.8.0 sphinx: 2.2.0 None ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6684/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issues] ( [id] INTEGER PRIMARY KEY, [node_id] TEXT, [number] INTEGER, [title] TEXT, [user] INTEGER REFERENCES [users]([id]), [state] TEXT, [locked] INTEGER, [assignee] INTEGER REFERENCES [users]([id]), [milestone] INTEGER REFERENCES [milestones]([id]), [comments] INTEGER, [created_at] TEXT, [updated_at] TEXT, [closed_at] TEXT, [author_association] TEXT, [active_lock_reason] TEXT, [draft] INTEGER, [pull_request] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [state_reason] TEXT, [repo] INTEGER REFERENCES [repos]([id]), [type] TEXT ); CREATE INDEX [idx_issues_repo] ON [issues] ([repo]); CREATE INDEX [idx_issues_milestone] ON [issues] ([milestone]); CREATE INDEX [idx_issues_assignee] ON [issues] ([assignee]); CREATE INDEX [idx_issues_user] ON [issues] ([user]);