[Mne_analysis] Error while reading snirf data
郭垒
guolei0812 at yeah.net
Fri Sep 24 10:49:09 EDT 2021
External Email - Use Caution
Dear Eric and Aqil:
Sorry for my late response, I have reported this bug on github Error while reading snirf data · Issue #393 · mne-tools/mne-nirs (github.com) and uploaded the file that can reproduce this bug. Thank you very much for your help.
Lei Guo
At 2021-09-24 11:21:41, "Aqil Izadysadr" <aqil.izadysadr at gmail.com> wrote:
External Email - Use Caution
Dear Eric,
I just opened an issue using the GitHub link and shared the Python script giving me the error.
Thank you for your assistance!
Best,
Aqil
From: Eric Larson
Sent: Thursday, September 23, 2021 10:17 AM
To: Discussion and support forum for the users of MNE Software
Subject: Re: [Mne_analysis] Error while reading snirf data
External Email - Use Caution
This looks like a bug in the SNIRF writer (or maybe reader?), can you open an issue here and ideally share a file (e.g., on Google Drive, DropBox, etc.) that has this problem:
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1kid1PzSoF1DT_fMsWCre_FrBj857rKpkE7wigvKowcE9UOQcgzb5fJZ5Fd4yMUXRcwOOnDvJ6kEmkzsuQT9cMh-xozMumi4FdqR1brPHorhKX7qRU87_823ooTVUJG0nSXDF8sVigjeA8_vy1jyqZhNNJSdHBthxbx9jtk-er4F5gaQUjvnZzNOPlVvbIs5C4FtVqwBo92UTgnwPZIcCcFj82-y_E933H1nwvpr6MvL4U2HLKwsKC6Xj7KgY4Ej60lxuEMUERi8ecOoNmithSA/https%3A%2F%2Fgithub.com%2Fmne-tools%2Fmne-nirs%2Fissues%2Fnew%3Fassignees%3D%26labels%3DBUG%26template%3Dbug_report.md%26title%3D
Eric
On Wed, Sep 22, 2021 at 7:58 AM 郭垒 <guolei0812 at yeah.net> wrote:
External Email - Use Caution
Dear everyone!
I am trying to use the mne_nirs module to process my fNIRS data. My device is NIRx and it provides snirf output. However, when I use the function mne.io.read_raw_snirf( ), it threw a valueError. Here below is my error log:
data1 = mne.io.read_raw_snirf('./whu0001_001/whu0001_001.snirf',preload=True)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
c:\Users\GuoLei\Desktop\test_wtc\data_preprocess.py in
----> 7 data1 = mne.io.read_raw_snirf('./whu0001_001/whu0001_001.snirf',preload=True)
D:\Softwares\Anaconda3\envs\data_analysis\lib\site-packages\mne\io\snirf\_snirf.py in read_raw_snirf(fname, preload, verbose)
45 mne.io.Raw : Documentation of attribute and methods.
46 """
---> 47 return RawSNIRF(fname, preload, verbose)
48
49
<decorator-gen-250> in __init__(self, fname, preload, verbose)
D:\Softwares\Anaconda3\envs\data_analysis\lib\site-packages\mne\io\snirf\_snirf.py in __init__(self, fname, preload, verbose)
270 else:
271 extra_ps[f'EEG{len(extra_ps) + 1:03d}'] = diglocs[idx]
--> 272 info['dig'] = _make_dig_points(nasion=nasion, lpa=lpa, rpa=rpa,
273 hpi=hpi, dig_ch_pos=extra_ps,
274 coord_frame=_frame_to_str[
D:\Softwares\Anaconda3\envs\data_analysis\lib\site-packages\mne\io\_digitization.py in _make_dig_points(nasion, lpa, rpa, hpi, extra_points, dig_ch_pos, coord_frame)
375 lpa = np.asarray(lpa)
376 if lpa.shape != (3,):
--> 377 raise ValueError('LPA should have the shape (3,) instead of %s'
378 % (lpa.shape,))
379 dig.append({'r': lpa, 'ident': FIFF.FIFFV_POINT_LPA,
ValueError: LPA should have the shape (3,) instead of (4,)
---------------------------------------------------------------------------
I really have no idea what "LPA" is. I used this function before on another data set (recorded from the same device) and it worked well. Does anyone have a solution to this error? Thanks advance!
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1hF-btQWyNEUdMyE-sG5kb7w29ZMHqGwVYRLWgqUaN4T_QhMga9CeggmrTjzpbowof6Vnb8Zh-aM3hyPmbEqtgMN3HI1kc799xz-j1-JdrTfOdkiNmR-oKg0_gjRECfLuwAbGKDa1HKrI935pDG6lBEa337dX-2TCP63iOEtUMxGpLtPm9yrDPjkT-aElSe-PPgqDcKdof2k6bxC7S9H8IcP1UB70ChK5U4dQlEfNahDkyr-h-Z5CwgSNwSd7FQCJWrsCTZ6qVQUcUxL4Njounw/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20210924/b82e80d3/attachment-0001.html
More information about the Mne_analysis
mailing list