does not read nirx file because does nof find the .inf file (which exists on the folder data)

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
from nilearn import plotting
from import read_raw_nirx
from mne.preprocessing.nirs import(optical_density, beer_lambert_law,
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 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 =, 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/", 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/", line 121, in __init__
    raise RuntimeError(
RuntimeError: Need one inf file, got 0

Solved. Somehow my files were corrupted and an extra .icloud appeared after each file’s extension, which was only visible through the terminal but not from the file explorator. Sorry for any inconvenience!

1 Like

iCloud’s syncing status is unfortunately not very accessible in the sense that you never really seem to know what has been synced, what is currently syncing, and what’s scheduled to be synced next :slightly_frowning_face: Glad to hear you managed to get this issue sorted out though!