Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix whitespace in exception message #123

Merged
merged 1 commit into from
May 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions xbout/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,13 @@ def _arrange_for_concatenation(filepaths, nxpe=1, nype=1):
nprocs = nxpe * nype
n_runs = int(len(filepaths) / nprocs)
if len(filepaths) % nprocs != 0:
raise ValueError("Each run directory does not contain an equal number"
"of output files. If the parallelization scheme of "
"your simulation changed partway-through, then please"
"load each directory separately and concatenate them"
"along the time dimension with xarray.concat().")
raise ValueError(
"Each run directory does not contain an equal number "
"of output files. If the parallelization scheme of "
"your simulation changed partway-through, then please "
"load each directory separately and concatenate them "
"along the time dimension with xarray.concat()."
)

# Create list of lists of filepaths, so that xarray knows how they should
# be concatenated by xarray.open_mfdataset()
Expand Down