diff --git a/doc/source/authors.rst b/doc/source/authors.rst index 357faaf52..f6ec68038 100644 --- a/doc/source/authors.rst +++ b/doc/source/authors.rst @@ -108,6 +108,7 @@ and may not be the current affiliation of a contributor. * Axel Coiffard-Donaty * Anthony Mercer * Aaron Kanzer [53] +* Eva B (evadiva3 on GitHub) 1. Centre de Recherche en Neuroscience de Lyon, CNRS UMR5292 - INSERM U1028 - Université Claude Bernard Lyon 1 2. Unité de Neuroscience, Information et Complexité, CNRS UPR 3293, Gif-sur-Yvette, France diff --git a/neo/io/nestio.py b/neo/io/nestio.py index cea34cec0..37aca2682 100644 --- a/neo/io/nestio.py +++ b/neo/io/nestio.py @@ -128,7 +128,7 @@ def __read_analogsignals( if len(np.unique(column_list_no_None)) < len(column_list_no_None): raise ValueError( "One or more columns have been specified to contain " - "the same data. Columns were specified to {column_list_no_None}." + f"the same data. Columns were specified to {column_list_no_None}." "" ) @@ -348,7 +348,7 @@ def _check_input_sampling_period(self, sampling_period, time_column, time_unit, if time_column is not None: data_sampling = np.unique(np.diff(sorted(np.unique(data[:, 1])))) if len(data_sampling) > 1: - raise ValueError(f"Different sampling distances found in " "data set ({data_sampling})") + raise ValueError(f"Different sampling distances found in data set ({data_sampling})") else: dt = data_sampling[0] else: diff --git a/neo/utils/misc.py b/neo/utils/misc.py index d9e7e0517..42d9b5527 100644 --- a/neo/utils/misc.py +++ b/neo/utils/misc.py @@ -329,7 +329,7 @@ def add_epoch(segment, event1, event2=None, pre=0 * pq.s, post=0 * pq.s, attach_ durations = event2.times + post - times if any(durations < 0): - raise ValueError(f"Can not create epoch with negative duration. " "Requested durations {durations}.") + raise ValueError(f"Can not create epoch with negative duration. Requested durations {durations}.") elif any(durations == 0): raise ValueError("Can not create epoch with zero duration.")