Hello fellow TVB Users,
I am using Jansen and Rit model in TVB (python 3) to simulate resting-state BOLD activity.
My understanding is that the most reasonable way to do this with JR model is to take the output variables y1 and y2, subtract them to obtain the difference between the excitatory and inhibitory inputs to pyramidal cells.
The next step for me is to apply the sigmoidal function to obtain the pulse density/firing rates and use them as the output to the fmri_ballon.py
I have the simulation output coming from
t_ssamp, ssamp = sim.run()
I am using a TimeSeriesRegion object as follows:
full_ssamp_tsr = TimeSeriesRegion(connectivity=s_conn,
data=ssamp, time = ts_samp
sample_period=sim.monitors[0].period)
full_ssamp_tsr.configure()
which works and then I am trying to get the BOLD signal by using:
balloon_analyser = fmri_balloon.BalloonModel(time_series=full_ssamp_tsr., dt=.72, neural_input_transformation='abs_diff')
balloon_data = balloon_analyser.evaluate()
balloon_data.configure()
as a result I am getting error:
AttributeError: 'TimeSeriesRegion' object has no attribute 'connectivity'
This seems really strange, I have tried different inputs to the BalloonModel and neither raw time_series nor the newly created TimeSeriesRegion seem to work. Could it be because I am not using region labels?
LONG STORY SHORT: What would be the best way to get my BOLD output working?
I would very much appreciate any advice.
Best
Jan