diff --git a/src/spikegadgets_to_nwb/convert_position.py b/src/spikegadgets_to_nwb/convert_position.py index d663302..a2ae0d8 100644 --- a/src/spikegadgets_to_nwb/convert_position.py +++ b/src/spikegadgets_to_nwb/convert_position.py @@ -1,6 +1,7 @@ -import os import logging +import os import re +import subprocess from pathlib import Path from xml.etree import ElementTree @@ -11,7 +12,6 @@ from pynwb.image import ImageSeries from scipy.ndimage import label from scipy.stats import linregress -import subprocess from spikegadgets_to_nwb.convert_rec_header import detect_ptp_from_header @@ -19,9 +19,31 @@ def parse_dtype(fieldstr: str) -> np.dtype: - """Parses last fields parameter (