sim.run() data output?

25 views
Skip to first unread message

Karin Westin

unread,
Dec 21, 2022, 4:37:05 PM12/21/22
to TVB Users
Hi!

I'm currently working on the Jansen Rit model using monitors.Raw. What I understand from the documentation (time,data) = sim.run() will then store all model state variables.
With np.shapes(data) = (16000, 4, 76, 1) I assume that "4" corresponds to model variables? If yes, which variables are extracted from the model?

Best regards and thanks in advance,
Karin

WOODMAN Michael

unread,
Dec 21, 2022, 4:46:25 PM12/21/22
to tvb-...@googlegroups.com
Hi

Yes (though it should be 6 for JR with the raw monitor not 4, seems like a bug) generally you can inspect sim.model.variables_of_interest to see what was kept. 

Cheers
Marmaduke 

On 21 Dec 2022, at 22:37, Karin Westin <karin.w...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "TVB Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tvb-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tvb-users/283a4d87-72b2-43d6-907d-9bfdf3fb185cn%40googlegroups.com.

Lia Domide

unread,
Dec 22, 2022, 2:44:46 AM12/22/22
to TVB Users
Hi Karin,


class JansenRit(....
    variables_of_interest = List( label="Variables watched by Monitors", choices=("y0", "y1", "y2", "y3", "y4", "y5"), default=("y0", "y1", "y2", "y3") .....)

Best,
Lia.


Reply all
Reply to author
Forward
0 new messages