Skip to content

Commit

Permalink
remove try-except block
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Apr 23, 2024
1 parent aa7ec33 commit e30091e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements-minimal.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ pynwb>=2.0.1
tqdm>=4.48.2
lazy_ops>=0.2.0
dill>=0.3.2
scipy>=1.5.2
scipy>=1.8.0
psutil>=5.8.0
PyYAML
7 changes: 2 additions & 5 deletions src/roiextractors/extraction_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from numpy.typing import ArrayLike, DTypeLike
from tqdm import tqdm
from packaging import version
from scipy.io.matlab.mio5_params import mat_struct


try:
Expand All @@ -29,11 +30,7 @@
HAVE_H5 = True
except ImportError:
HAVE_H5 = False
try:
if hasattr(scipy.io.matlab, "mat_struct"):
from scipy.io.matlab import mat_struct
else:
from scipy.io.matlab.mio5_params import mat_struct


HAVE_Scipy = True
except AttributeError:
Expand Down

0 comments on commit e30091e

Please sign in to comment.