Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2644 Finalize Simulator Page
  3. TVB-2707

Fix surface simulations with EEG monitor

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.6
    • Component/s: Web Interface
    • Labels:
      None
    • Sprint:
      VBC 6 SGA2R

      Description

      Configure a surface simulation with an EEG monitor and launch it.

      The flow works correctly until SimulatorAdapter tries to write the surface GID in a TimeSeriesEEGH5 file that does not keep that field.
      The following error is thrown:

      2020-05-11 21:52:09,073 - ERROR [proc:39928]  - tvb.core.operation_async_launcher - 'TimeSeriesEEGH5' object has no attribute 'surface'
      Traceback (most recent call last):
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/operation_async_launcher.py", line 78, in do_operation_launch
          OperationService().initiate_prelaunch(curent_operation, adapter_instance)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/operation_service.py", line 354, in initiate_prelaunch
          self._handle_exception(excep1, temp_files, msg, operation)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/operation_service.py", line 400, in _handle_exception
          sys.exc_info()[2])  # when rethrowing in python this is required to preserve the stack trace
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/operation_service.py", line 326, in initiate_prelaunch
          result_msg, nr_datatypes = adapter_instance._prelaunch(operation, unique_id, available_space, view_model=view_model)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/adapters/abcadapter.py", line 90, in new_function
          return func(*args, **kw)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/adapters/abcadapter.py", line 373, in _prelaunch
          result = self.launch(view_model)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/adapters/simulator/simulator_adapter.py", line 383, in launch
          ts_h5.surface.store(self.algorithm.surface.gid)
      AttributeError: 'TimeSeriesEEGH5' object has no attribute 'surface'
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              robert.vincze Robert Francisc Vincze
              Reporter:
              paula.popa Paula Popa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours Time Not Required
                  3h