Until yesterday, everything was working perfectly. Now, it is not, and I have not changed anything on the files. I have an .inf file in the folder of the data, but says that there is no such file. I don’t know if something in the package was changed or if I need to update any library… @rob-luke
- MNE version: 1.0.3
- operating system: macOS 10.13.6
import os.path as op
import numpy as np
import matplotlib.pyplot as plt
from itertools import compress
import os.path as op
import numpy as np
import matplotlib.pyplot as plt
from itertools import compress
import os
import mne
import mne_nirs
import numpy as np
from mne_nirs.experimental_design import make_first_level_design_matrix
from mne_nirs.statistics import run_glm
from nilearn.plotting import plot_design_matrix
np.random.seed(1)
from nilearn import plotting
from mne.io import read_raw_nirx
from mne.preprocessing.nirs import(optical_density, beer_lambert_law,
temporal_derivative_distribution_repair)
import mne
from mne_bids import BIDSPath, read_raw_bids, get_entity_vals
from mne_nirs.statistics import run_glm, statsmodels_to_results
from mne_nirs.channels import get_long_channels, get_short_channels
from mne_nirs.io.fold import fold_landmark_specificity
from mne_nirs.visualisation import plot_nirs_source_detector, plot_glm_surface_projection
from mne_nirs.datasets import fnirs_motor_group
fnirs_data_folder = '/Users/irenearrietasagredo/Desktop/BCBL/Thesis-Data/3_DATA/data'
fnirs_cw_amplitude_dir = os.path.join(fnirs_data_folder, 'NH10_S1/NIRS/S1/CM_NH10/2021-10-21/2021-10-21_001')
raw_intensity = mne.io.read_raw_nirx(fnirs_cw_amplitude_dir, verbose=None)
Loading /Users/irenearrietasagredo/Desktop/BCBL/Thesis-Data/3_DATA/data/NH10_S1/NIRS/S1/CM_NH10/2021-10-21/2021-10-21_001
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/mne/io/nirx/nirx.py", line 51, in read_raw_nirx
return RawNIRX(fname, saturated, preload, verbose)
File "<decorator-gen-270>", line 12, in __init__
File "/usr/local/lib/python3.9/site-packages/mne/io/nirx/nirx.py", line 121, in __init__
raise RuntimeError(
RuntimeError: Need one inf file, got 0