We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581682f commit 01b5bd4Copy full SHA for 01b5bd4
mne/bem.py
@@ -2176,11 +2176,11 @@ def make_flash_bem(
2176
# Step 5b and c : Convert the mgz volumes into COR
2177
convert_T1 = False
2178
T1_dir = mri_dir / "T1"
2179
- if not T1_dir.is_dir() or next(T1_dir.glob("COR*")) is None:
+ if not T1_dir.is_dir() or len(list(T1_dir.glob("COR*"))) == 0:
2180
convert_T1 = True
2181
convert_brain = False
2182
brain_dir = mri_dir / "brain"
2183
- if not brain_dir.is_dir() or next(brain_dir.glob("COR*")) is None:
+ if not brain_dir.is_dir() or len(list(brain_dir.glob("COR*"))) == 0:
2184
convert_brain = True
2185
logger.info("\n---- Converting T1 volume into COR format ----")
2186
if convert_T1:
0 commit comments