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

Fix loading a newly created connectivity in Connectivity viewer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.10
    • Component/s: None
    • Epic Link:
    • Sprint:
      VBC Sprint 9
    • TVB-C Task:
      8.2 Pipeline Integration

      Description

      I encounter an error when trying to load the Large Scale Connectivity visualizer on a previously created Connectivity with only one hemisphere:

      2020-09-10 12:38:41,222 - ERROR - tvb.interface.web.controllers.decorators - An unexpected exception appeared
      Traceback (most recent call last):
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/decorators.py", line 153, in deco
       return func(*a, **b)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/decorators.py", line 81, in deco
       template_dict = func(*a, **b)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/decorators.py", line 200, in deco
       return func(*a, **b)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/decorators.py", line 272, in deco
       return func(*a, **b)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/decorators.py", line 257, in deco
       return func(*a, **b)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/flow_controller.py", line 225, in default
       template_specification = self.execute_post(project.id, submit_link, step_key, algorithm, **data)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/autologging.py", line 1053, in autologging_traced_instancemethod_delegator
       return method(*args, **keywords)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/flow_controller.py", line 311, in execute_post
       result = adapter_instance.launch(view_model)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/adapters/visualizers/connectivity.py", line 218, in launch
       view_model.step)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/adapters/visualizers/connectivity.py", line 386, in compute_parameters
       numpy.asarray(colors)[input_data.hemispheres], X_CANVAS_SMALL, Y_CANVAS_SMALL)
       File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/adapters/visualizers/connectivity.py", line 423, in _get_json
       max_y = max(positions[:, coord_idx2])
      ValueError: max() arg is an empty sequence

        Gliffy Diagrams

          Attachments

            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 - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 1 hour Time Not Required
                  2d 1h