Skip to content

Commit

Permalink
Fix whitespace in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed May 13, 2020
1 parent 8d5f7af commit e9dc174
Showing 1 changed file with 7 additions and 5 deletions.
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

0 comments on commit e9dc174

Please sign in to comment.