Closed seqasim closed 6 years ago
Most other patients so far have worked fine.
If you want code to exactly test this case:
sessions_completed = r1_data[(r1_data['subject'] == 'R1182C') &
(r1_data['experiment'] == 'TH1')]
ses_reader = cml.CMLReader(subject='R1182C', experiment="TH1", session=0,
localization=0, montage=0)
elec_info = ses_reader.load('contacts')
mono_chans = ses_reader.load('leads')
events_df = ses_reader.load('task_events')
freqs=np.logspace(np.log10(1), np.log10(200), 50)
# filter to just item presentation events
events = events_df[(events_df.type == 'CHEST') & (events_df.confidence>=0)]
#bipol_chans=RAM_helpers.get_channel_numbers(subj[0], montage=subj[1], bipol=True, use_json=True)
subj_pow = RAM_helpers.compute_power(events,
freqs,
wave_num = 5,
rel_start_ms= -500,
rel_stop_ms= 1000,
buf_ms= 2000,
log_power= True,
noise_freq= [58.0, 62.0],
elec_scheme= elec_info,
cluster_pool= None,
resample_freq= None,
mean_over_time= False,
use_mirror_buf= False,
loop_over_chans=True)
Yeah there is definitely something weird with that subject. Thee eeg files that the events point to don't exist, at least not in that location.
/protocols/r1/subjects/R1189M/experiments/TH1/sessions/0/ephys/current_processed/noreref/R1189M_TH1_0_28Jul16_1918
closing this as it's a data storage or cmlreaders issue.
Hey, I keep getting the following error with patients when trying to load and save their monopolar EEG data. These include R1182C, and R1189M. Have you had this problem? It's a KeyError that seems to imply that these patients don't have "contact" information.