Skip to content

Commit

Permalink
Add manifest to include data, autoclose netcdf
Browse files Browse the repository at this point in the history
  • Loading branch information
ColCarroll committed Sep 4, 2018
1 parent b934e91 commit d151854
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include *.md
include LICENSE

recursive-include arviz *.gzip
recursive-include arviz *.mplstyle
recursive-include arviz *.nc
2 changes: 1 addition & 1 deletion arviz/inference_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def from_netcdf(filename):
"""
groups = {}
for group in nc.Dataset(filename, mode='r').groups:
groups[group] = xr.open_dataset(filename, group=group)
groups[group] = xr.open_dataset(filename, group=group, autoclose=True)
return InferenceData(**groups)

def to_netcdf(self, filename):
Expand Down

0 comments on commit d151854

Please sign in to comment.