PandasImportExport class

(Shortest import: from brian2.importexport import PandasImportExport)

class brian2.importexport.dictlike.PandasImportExport[source]

Bases: brian2.importexport.importexport.ImportExport

An importer/exporter for variables in pandas DataFrame format.

Attributes

name Abstract property giving a method name.

Methods

export_data(group, variables[, units, level]) Asbtract static export data method with two obligatory parameters.
import_data(group, data[, units, level]) Import and set state variables.

Details

name

Abstract property giving a method name.

static export_data(group, variables, units=True, level=0)[source]

Asbtract 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.

static import_data(group, data, units=True, level=0)[source]

Import and set state variables.

Parameters:

group : Group

Group object.

data : dict_like

Data to import with variable names.