Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
ez-detect ez-detect
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • tju-uba
  • ez-detectez-detect
  • Issues
  • #25

Closed
Open
Created Oct 19, 2018 by Tomas Pastore@tpastoreOwner

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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking