Skip to content

Class Scan2023 #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scanreader/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions scanreader/scans.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down