Hello,
I got to this quite old discussion because I am interested to inject multiple stimuli in the network (I am using tvb running on Python 3). Using the same approach as in multiple_stimuli.ipynb, I obtain “stimulus" as a <__main__.MultiStimuliRegion at 0x1a1c266750> , where stimulus.stimuli is a tuple having the following elements:
(<tvb.datatypes.patterns.StimuliRegion at 0x1a1b603dd0>,
<tvb.datatypes.patterns.StimuliRegion at 0x1a1c1db5d0>,
<tvb.datatypes.patterns.StimuliRegion at 0x1a1c266a90>),
where each element is for one stimulus.
After running simulator.Simulator, I get the following error in sim.configure():
"
tvb.basic.neotraits.ex.TraitAttributeError: required attribute referenced before assignment. Use a default or assign a value before reading it
attribute tvb.datatypes.patterns.StimuliRegion.connectivity = Attr(field_type=<class 'tvb.datatypes.connectivity.Connectivity'>, default=None, required=True)
"
On the contrary, if I provide to simulator.Simulator stimulus.stimuli[0] (i.e., only one of the three stimuli), then sim.configure() works smoothly. Do you have any hint on how to solve this?
Thank you for any help you can offer,
Anna
Hi Lia,
Many thanks. This is very helpful.
Best,
Asad