mvpa2.base.collections.UniformLengthCollection

Inheritance diagram of UniformLengthCollection

class mvpa2.base.collections.UniformLengthCollection(items=None, length=None)

Container for attributes with the same length.

Parameters :

length : int

When adding items to the collection, they are checked if the have this length.

attr_length

Uniform length of all attributes in a collection

copy(*args, **kwargs)

Create a copy of a collection.

By default this is going to return a deep copy of the collection, hence no data would be shared between the original dataset and its copy.

Parameters :

deep : boolean, optional

If False, a shallow copy of the collection is return instead. The copy contains only views of the values.

a : list or None

List of attributes to include in the copy of the dataset. If None all attributes are considered. If an empty list is given, all attributes are stripped from the copy.

memo : dict

Developers only: This argument is only useful if copy() is called inside the __deepcopy__() method and refers to the dict-argument memo in the Python documentation.

set_length_check(value)
Parameters :

value : int

When adding new items to the collection, they are checked if the have this length.

NeuroDebian

NITRC-listed