Skip to content

Commit 54de295

Browse files
author
kleinjohann
committed
Allow for negative floats
1 parent 50abfbc commit 54de295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/phyrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _rescale_epoch_duration(self, raw_duration, dtype):
221221
def _parse_tsv_or_csv_to_list_of_dict(filename):
222222
list_of_dict = list()
223223
letter_pattern = re.compile('[a-zA-Z]')
224-
float_pattern = re.compile(r'\d*\.')
224+
float_pattern = re.compile(r'-?\d*\.')
225225
with open(filename) as csvfile:
226226
if filename.suffix == '.csv':
227227
reader = csv.DictReader(csvfile, delimiter=',')

0 commit comments

Comments
 (0)