Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Raw monitoring of Epileptor model

31 views
Skip to first unread message

Elike Morsink

unread,
May 30, 2024, 5:26:11 AM5/30/24
to TVB Users
Hello, 
I am relatively new with TVB and trying to model epilepsy, with the notebook tutorial_s6_ModelingEpilepsy as starting point. Now, I am trying to make sense out of the data, e.g. seeing the effect of changing the x0 parameter. I'd like to do this also by looking at the raw data monitor.
I keep ending up however with the error:
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'.
This while defining the monitors has only been changed by adding another variable: 
mon_rawdata = monitors.Raw(period=1.)

what_to_watch = (mon_rawdata,mon_tavg,mon_EEG,mon_SEEG)
What do I miss here and how to fix this?

Thanks,

Elike

WOODMAN Michael

unread,
May 30, 2024, 7:14:45 AM5/30/24
to TVB Users

hi


The raw monitor provides full output of the simulation and will ignore the period argument.  Nevertheless, with that demo notebook, I can't reproduce that error with that change, perhaps something else has changed.  Do you have the full notebook available?


cheers,

Marmaduke


From: tvb-...@googlegroups.com <tvb-...@googlegroups.com> on behalf of Elike Morsink <morsin...@gmail.com>
Sent: Thursday, May 30, 2024 11:26:11 AM
To: TVB Users
Subject: [RESEAUX SOCIAUX] [TVB] Raw monitoring of Epileptor model
 

Ce mail provient de l'extérieur, restons vigilants

--
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/4a63edf9-3563-47ad-822a-772af5becca5n%40googlegroups.com.

Elike Morsink

unread,
May 30, 2024, 8:45:24 AM5/30/24
to TVB Users
Thanks for your fast reply. Yes I do and it's in the attachment (although very similar to the original tutorial).
Elike
Op donderdag 30 mei 2024 om 13:14:45 UTC+2 schreef marmaduke.woodman:
EpilepsyTutorial1.ipynb

WOODMAN Michael

unread,
May 30, 2024, 8:57:01 AM5/30/24
to TVB Users

hi


the .configure() method needs to be called on the simualtor objects. once those lines are uncommented, the notebook runs fine.


cheers,

Marmaduke




Sent: Thursday, May 30, 2024 14:45
To: TVB Users
Subject: [RESEAUX SOCIAUX] Re: [RESEAUX SOCIAUX] [TVB] Raw monitoring of Epileptor model
 

Elike Morsink

unread,
May 31, 2024, 8:52:45 AM5/31/24
to TVB Users
Thanks again for that!
Another thing that is not yet clear to me is how to define the monitor output as such for enabling the access to (and plotting of) the seperate state variables, e.g. the slow permittivity variable z. As I understand at the moment, the raw data and time averaged data is representing the LFP, which is defined as -x1+x2 in the Epileptor model.

Furthermore I am really curious to understand what happens at the onset of the system in general during the time interval of approximately 0-2 seconds. Do you have any recommendations on where to find answers related to this?

Best,
Elike
Op donderdag 30 mei 2024 om 14:57:01 UTC+2 schreef marmaduke.woodman:

WOODMAN Michael

unread,
May 31, 2024, 9:11:11 AM5/31/24
to tvb-...@googlegroups.com

hi,


On the model instance, the variables_of_interest attribute is a list of expressions that should be computed for the time series result.  The defaults include x2 - x1 but you can set it to return all of them like so


epileptors.variables_of_interest = epileptors.state_variables



As for understanding the mechanisms behind seizure onset in these models, see e.g. https://academic.oup.com/brain/article/137/8/2210/2847958


cheers

Marmaduke


Sent: Friday, May 31, 2024 2:52:45 PM
To: TVB Users
Subject: [RESEAUX SOCIAUX] Re: [TVB] Raw monitoring of Epileptor model
 
Reply all
Reply to author
Forward
0 new messages