spiketools.objects.Session

class spiketools.objects.Session(subject=None, session=None, task=None, units=None)[source]

A Session object.

Parameters:
subjectstr

Subject label.

sessionstr

Session label.

taskstr

Task label.

unitslist of Units

Units for the session.

__init__(subject=None, session=None, task=None, units=None)[source]

Initialize Subject object.

Methods

__init__([subject, session, task, units])

Initialize Subject object.

add_unit(unit)

Add a unit to the object.

Attributes

n_units

The number of units contained in the object.

add_unit(unit)[source]

Add a unit to the object.

Parameters:
unitUnit

An individual unit.

property n_units

The number of units contained in the object.