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

Correct Wavelet adapter GUI configuration

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.6
    • Component/s: Web Interface
    • Labels:
      None
    • Epic Link:
    • Sprint:
      VBC 6 SGA2R
    • TVB-C Task:
      8.2 Pipeline Integration

      Description

      In Wavelet analyser for field Frequency range of result (khz), the Base and Mode sub fields are missing. (Base and Mode subfields don't exist on Range anymore, so that's ok)

      Continuous Wavelet Transform gives an error when you try to lauch it after filling lo, step and hi.

      The error seems to happen because wavelet adapter has an attribute of type Range and we don't have support for it in H5 API:

      2020-05-07 09:21:58,093 - ERROR - tvb.interfaces.web.controllers.flow_controller - Error while executing a Launch procedure:Object dtype dtype('O') has no native HDF5 equivalent
      Traceback (most recent call last):
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/flow_service.py", line 178, in fire_operation
          model_view=view_model, **data)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/operation_service.py", line 118, in initiate_operation
          {}, visible, view_model=model_view, **kwargs)[0]
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/operation_service.py", line 280, in prepare_operations
          OperationService._store_view_model(operation, project, view_model)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/operation_service.py", line 289, in _store_view_model
          h5_file.store(view_model)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/neotraits/_h5core.py", line 123, in store
          accessor.store(getattr(datatype, f_name))
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/neotraits/_h5accessors.py", line 90, in store
          self.owner.storage_manager.set_metadata({self.field_name: val})
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/entities/file/hdf5_storage_manager.py", line 300, in set_metadata
          node.attrs[key_to_store] = processed_value
        File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
        File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
        File "/anaconda/envs/tvb_framework_git_py3/lib/python3.7/site-packages/h5py-2.10.0-py3.7-macosx-10.9-x86_64.egg/h5py/_hl/attrs.py", line 100, in __setitem__
          self.create(name, data=value)
        File "/anaconda/envs/tvb_framework_git_py3/lib/python3.7/site-packages/h5py-2.10.0-py3.7-macosx-10.9-x86_64.egg/h5py/_hl/attrs.py", line 184, in create
          htype = h5t.py_create(original_dtype, logical=True)
        File "h5py/h5t.pyx", line 1634, in h5py.h5t.py_create
        File "h5py/h5t.pyx", line 1656, in h5py.h5t.py_create
        File "h5py/h5t.pyx", line 1711, in h5py.h5t.py_create
      TypeError: Object dtype dtype('O') has no native HDF5 equivalent
      

      Also, it was introduced after changing operation serialization to ViewModel. 

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                adrian.dordea Adrian Dordea
                Reporter:
                paula.popa Paula Popa
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day Original Estimate - 1 day
                    1d
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 2 days, 2 hours, 30 minutes
                    2d 2h 30m