[Eeglablist] Error reading .ced location files
Nic Badcock
nicholas.badcock at uwa.edu.au
Sat Aug 12 05:18:26 PDT 2023
Dear EEGLAB List,
I'm attempting to import a .ced file with the following code (where my_file = the full path to a .ced file):
EEG = pop_editset(EEG, 'chanlocs', my_file)
It's returning the following error:
Unrecognized property 'ref' for class 'string'.
Error in eeg_checkset (line 1063)
EEG.chanlocs(1).ref = ref;
Error in pop_editset (line 495)
EEGOUT = eeg_checkset(EEGOUT);
This code and .ced file have previously worked for me, but in older versions of MATLAB (currently using: '9.13.0.2080170 (R2022b) Update 1') and EEGLAB (using the 2023.0 version) - I'm on a Windows (10 Enterprise, 19045.3208).
The eeg_checkset function appears to assume that EEG.chanlocs is the EEG structure before it checks to see if it's actually a file name - hence it doesn't like ".ref" being added as it's not a structure variable.
I wanted to check whether I've missed something obvious before playing with the code (e.g., putting the 'isstruct' check higher in the code).
Many thanks,
Nic
PS here's a link to a copy of the .edf<https://urldefense.com/v3/__https://www.dropbox.com/scl/fi/j5gh36225wy8zlz3i3xkg/EEG_PEAD-PCH_P001_t1_SD_EPOCPLUS_185931_2023.05.23T10.32.00-08.00.edf?rlkey=0bxk2l4er11e3ul76zr6sba5l&dl=0__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5Ls47Nz2Z$ > I'm working with as well as the .ced<https://urldefense.com/v3/__https://www.dropbox.com/scl/fi/no7mjphpuk3znlmvdyre7/Emotiv_Sensor_Locations.ced?rlkey=8lwtbqdm6smqb7a8c1qi1sxxw&dl=0__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5Ln140Oqx$ > - maybe to complicate things, the edf is an Emotiv file so it's just columns 7 to 20 that are needed.
Dr Nicholas Badcock (he/him)
Senior Lecturer
School of Psychological Science • M304, Perth WA 6009 Australia
+61 8 6488 3265 • nicholas.badcock at uwa.edu.au
[The University of Western Australia]<https://urldefense.com/v3/__https://www.web.uwa.edu.au/university-campaigns-resources/emailsig2015/uwa-logo__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5Ljgn3ljl$ > [UWA on Facebook] <https://urldefense.com/v3/__https://www.uwa.edu.au/university-campaigns-resources/emailsig2015/facebook__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LpwWzYw5$ > [https://urldefense.com/v3/__https://static.weboffice.uwa.edu.au/visualid/graphics/email/signature-2020-v2/social-divider.png__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LtGiu0YV$ ] [UWA on Twitter] <https://urldefense.com/v3/__https://www.uwa.edu.au/university-campaigns-resources/emailsig2015/twitter__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LscaV5hX$ > [https://urldefense.com/v3/__https://static.weboffice.uwa.edu.au/visualid/graphics/email/signature-2020-v2/social-divider.png__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LtGiu0YV$ ] [UWA on Youtube] <https://urldefense.com/v3/__https://www.uwa.edu.au/university-campaigns-resources/emailsig2015/youtube__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LnHRos4a$ > [https://urldefense.com/v3/__https://static.weboffice.uwa.edu.au/visualid/graphics/email/signature-2020-v2/social-divider.png__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LtGiu0YV$ ] [UWA on Linked In] <https://urldefense.com/v3/__https://www.web.uwa.edu.au/university-campaigns-resources/emailsig2015/linkedin__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LlMlysBJ$ > [https://urldefense.com/v3/__https://static.weboffice.uwa.edu.au/visualid/graphics/email/signature-2020-v2/social-divider.png__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LtGiu0YV$ ] [UWA on Instagram] <https://urldefense.com/v3/__https://www.web.uwa.edu.au/university-campaigns-resources/emailsig2015/instagram__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5Lg5TFjLK$ > [UWA Ally] <https://urldefense.com/v3/__https://www.web.uwa.edu.au/inclusion-diversity/sexualities/ally__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LuO82fLr$ >
[https://urldefense.com/v3/__https://static.weboffice.uwa.edu.au/visualid/graphics/email/signature-2020-v2/rule.png__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LrZPAZdv$ ]
[https://urldefense.com/v3/__https://static.weboffice.uwa.edu.au/visualid/graphics/email/signature-2021/indigenous-acknowledgement-accent.png__;!!Mih3wA!HNG9lyTcKqkj8x8g5tlwvEXCLSl2_jB2vURh9UcmRgZP7LvOYsRHop5024JkJ_p16mXQyH4-F2R0aDlmgbZpvy2TKiK5LnopDIW0$ ] We acknowledge we are situated on Noongar land, and that Noongar people remain the spiritual and cultural custodians of their land, and continue to practice their values, languages, beliefs and knowledge. We pay our respects to the traditional owners of the lands on which we live and work across Western Australia and Australia.
CRICOS Code: 00126G
More information about the eeglablist
mailing list