Correct format after reading .mat, we have a numpy.ndarray where we need just the time for that event
I was trying to replicate ez_annotate for example in line 186. But where it is supposed to be a variable of seconds there is a numpy array returned by scipy.io.loadmat
Exception in thread DSP_block_0: Traceback (most recent call last): File "/home/tomas-pastore/anaconda3/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/home/tomas-pastore/anaconda3/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "/home/tomas-pastore/ez-detect/src/main/process_batch.py", line 237, in processParallelBlock eeg_bp, metadata, hfo_ai, fr_ai = monopolarAnnotations(eeg_mp, eeg_bp, metadata, paths, rec_time) File "/home/tomas-pastore/ez-detect/src/main/process_batch.py", line 265, in monopolarAnnotations xml_append_annotations(paths['xml_output_path'], output_fname, rec_time) File "/home/tomas-pastore/ez-detect/src/main/process_batch.py", line 485, in xml_append_annotations append_spike_annotations(xml_file, events_matfile, rec_time) File "/home/tomas-pastore/ez-detect/src/main/process_batch.py", line 503, in append_spike_annotations DEF_HFO_SPIKE_GUID, spike_on_offset, spike_off_offset, now) File "/home/tomas-pastore/ez-detect/src/main/process_batch.py", line 559, in appendEventsOfKind begin = fixFormat(rec_time + timedelta(seconds=events[aKindOfEvent]['start_t'][i])+on_offset) TypeError: unsupported type for timedelta seconds component: numpy.ndarray