I would like to use one of the functions of the Brian2 simulation library in python, but I can't figure it out what should I write in its place of 'group'.
the documentations of this function:
def export_data(group, variables):
'''
Abstract static export data method with two obligatory parameters.
It should return a copy of the current state variable values. The
returned arrays are copies of the actual arrays that store the state
variable values, therefore changing the values in the returned
dictionary will not affect the state variables.
Parameters
----------
group : `Group`
Group object.
variables : list of str
The names of the variables to extract.
'''
So far I have found that there is a group class within brian2: [https://brian2.readthedocs.io/en/stable/reference/brian2.groups.group.Group.html?highlight=group][1]
Please help me!
Thanks! [1]: https://brian2.readthedocs.io/en/stable/reference/brian2.groups.group.Group.html?highlight=group
there is no export function into a vector in brian2 however you can get it easily :