Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2808

shape mismatch in SpatialAverage monitors default spatial mask

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.4
    • None
    • None
    • VBC Sprint 13
    • 8.2 Pipeline Integration

    Description

      Running a surface simulation with subcortical regions in the connectome
      caused an error when using the SpatialAverage monitor together with the default spatial mask,
      i.e. this will default to the surface region map.
      This is not enough, because it ignores the subcortical regions and causes a shape mismatch
      when configuring the monitor.

      Traceback (most recent call last):
       File "/Users/pault/miniconda3/envs/tvb/lib/python3.7/multiprocessing/pool.py", line 121, in worker
       result = (True, func(*args, **kwds))
       File "/Users/pault/miniconda3/envs/tvb/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
       return list(map(*args))
       File "/Users/pault/Projects/neural_field_epileptor/SIMULATE.py", line 111, in run_one_epi_sim
       sim.configure()
       File "/Users/pault/miniconda3/envs/tvb/lib/python3.7/site-packages/tvb/simulator/simulator.py", line 288, in configure
       self._configure_monitors()
       File "/Users/pault/miniconda3/envs/tvb/lib/python3.7/site-packages/tvb/simulator/simulator.py", line 534, in _configure_monitors
       monitor.config_for_sim(self)
       File "/Users/pault/miniconda3/envs/tvb/lib/python3.7/site-packages/tvb/simulator/monitors.py", line 280, in config_for_sim
       raise Exception(msg)
      Exception: spatial_mask must be a vector of length number_of_nodes.
      

      Would it make sense to use the simulator._regmap attribute instead of simulator.surface.region_mapping,
      because the subcortical regions are included there ?
      In monitors.py on line 265.

      Gliffy Diagrams

        Attachments

          Activity

            People

              robert.vincze Robert Francisc Vincze
              paul.triebkorn Paul Triebkorn
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h