From e9dc174eb3c6cff9873ca4af65c6e285d4c5c103 Mon Sep 17 00:00:00 2001 From: Peter Hill Date: Wed, 13 May 2020 15:46:12 +0100 Subject: [PATCH] Fix whitespace in exception message --- xbout/load.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/xbout/load.py b/xbout/load.py index 295cc13d..1f1c09c5 100644 --- a/xbout/load.py +++ b/xbout/load.py @@ -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()