diff --git a/scanreader/core.py b/scanreader/core.py index 2a4fc6d..85f0419 100644 --- a/scanreader/core.py +++ b/scanreader/core.py @@ -22,7 +22,8 @@ '2017a': scans.Scan2017a, '2017b': scans.Scan2017b, '2018a': scans.Scan2018a, '2018b': scans.Scan2018b, '2019a': scans.Scan2019a, '2019b': scans.Scan2019b, - '2020': scans.Scan2020, '2021': scans.Scan2021} + '2020': scans.Scan2020, '2021': scans.Scan2021, + '2023': scans.Scan2023} def read_scan(pathnames, dtype=np.int16, join_contiguous=False): """ Reads a ScanImage scan. @@ -50,7 +51,7 @@ def read_scan(pathnames, dtype=np.int16, join_contiguous=False): # Select the appropriate scan object - if (version in ['2016b', '2017a', '2017b', '2018a', '2018b', '2019a', '2019b', '2020', '2021'] and + if (version in ['2016b', '2017a', '2017b', '2018a', '2018b', '2019a', '2019b', '2020', '2021', '2023'] and is_scan_multiROI(file_info)): scan = scans.ScanMultiROI(join_contiguous=join_contiguous) elif version in _scans: diff --git a/scanreader/scans.py b/scanreader/scans.py index d6eafd7..aeea858 100644 --- a/scanreader/scans.py +++ b/scanreader/scans.py @@ -675,6 +675,9 @@ class Scan2021(Scan5Point3): """ ScanImage 2021""" pass +class Scan2023(Scan5Point3): + """ ScanImage 2023""" + pass class ScanMultiROI(NewerScan, BaseScan): """An extension of ScanImage v5 that manages multiROI data (output from mesoscope).