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

Models under tvb_contrib are not working

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.3
    • None
    • None
    • tvb contributor

    Description

      ~/anaconda3/envs/tvb-run/lib/python3.7/site-packages/tvb/contrib/simulator/models/morris_lecar.py in __init__(self, **kwargs) 178 179 """ --> 180 LOG.info('%s: initing...' % str(self)) 181 super(MorrisLecar, self).__init__(**kwargs) 182 ~/anaconda3/envs/tvb-run/lib/python3.7/site-packages/tvb/basic/neotraits/_core.py in __str__(self) 183 184 def __str__(self): --> 185 return trait_object_str(self) 186 187 def _repr_html_(self): ~/anaconda3/envs/tvb-run/lib/python3.7/site-packages/tvb/basic/neotraits/info.py in trait_object_str(self) 133 def trait_object_str(self): 134 cls = type(self) --> 135 summary = self.summary_info() 136 result = ['{} ('.format(cls.__name__)] 137 maxlenk = max(len(k) for k in summary) ~/anaconda3/envs/tvb-run/lib/python3.7/site-packages/tvb/basic/neotraits/_core.py in summary_info(self) 237 cls = type(self) 238 ret = \{'Type': cls.__name__} --> 239 if self.title: 240 ret['title'] = str(self.title) 241 AttributeError: 'MorrisLecar' object has no attribute 'title'
       

      The code is:
       

      import tvb.simulator.models as models
      from tvb.contrib.simulator.models import morris_lecar
      import numpy as np
      dt=0.1
      integ = integrators.HeunDeterministic(dt=dt)
      oscil = morris_lecar.MorrisLecar() #variables_of_interest=['V','N'],gCa=np.array([4.])) 
      

       

      We should at least switch the two lines in constructor MorrisLecar. _init_
       
             super(MorrisLecar, self)._init_(**kwargs)

             LOG.info('%s: initing...' % str(self))

       
      we should review all models under contrib as well as the activation/install process for `tvb.contrib`

      Gliffy Diagrams

        Attachments

          Activity

            People

              robert.vincze Robert Francisc Vincze
              lia.domide Lia Domide
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1 day, 5 hours, 30 minutes
                  1d 5h 30m