Skip to content

Commit

Permalink
Merge pull request #191 from boutproject/reload-docstring
Browse files Browse the repository at this point in the history
Add info on reloading Datasets to open_boutdataset docstring
  • Loading branch information
johnomotani authored Apr 9, 2021
2 parents 98fbb5d + 8253e22 commit 9295c25
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions xbout/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ def open_boutdataset(
Load a dataset from a set of BOUT output files, including the input options
file. Can also load from a grid file.
Note that when reloading a Dataset that was saved by xBOUT, the state of the saved
Dataset is restored, and the values of `keep_xboundaries`, `keep_yboundaries`, and
`run_name` are ignored. `geometry` is treated specially, and can be passed when
reloading a Dataset (along with `gridfilepath` if needed).
Parameters
----------
datapath : str or (list or tuple of xr.Dataset), optional
Expand Down Expand Up @@ -187,8 +192,8 @@ def attrs_remove_section(obj, section):
grid = _open_grid(
gridfilepath,
chunks=chunks,
keep_xboundaries=keep_xboundaries,
keep_yboundaries=keep_yboundaries,
keep_xboundaries=ds.metadata["keep_xboundaries"],
keep_yboundaries=ds.metadata["keep_yboundaries"],
mxg=ds.metadata["MXG"],
)
else:
Expand Down

0 comments on commit 9295c25

Please sign in to comment.