mvpa2.base.node.SampleAttributesCollection¶
-
class
mvpa2.base.node.
SampleAttributesCollection
(items=None, length=None)¶ Container for attributes of samples (i.e. labels, chunks...)
Attributes
attr_length
Uniform length of all attributes in a collection Methods
clear
(() -> None. Remove all items from D.)copy
(\*args, \*\*kwargs)Create a copy of a collection. fromkeys
(...)v defaults to None. get
((k[,d]) -> D[k] if k in D, ...)has_key
((k) -> True if D has a key k, else False)items
(() -> list of D’s (key, value) pairs, ...)iteritems
(() -> an iterator over the (key, ...)iterkeys
(() -> an iterator over the keys of D)itervalues
(...)keys
(() -> list of D’s keys)match
(d[, strict])Given a dictionary describing selection, return mask for matching items pop
((k[,d]) -> v, ...)If key is not found, d is returned if given, otherwise KeyError is raised popitem
(() -> (k, v), ...)2-tuple; but raise KeyError if D is empty. set_length_check
(value)Parameters: setdefault
((k[,d]) -> D.get(k,d), ...)update
(source[, copyvalues, memo])Parameters: values
(() -> list of D’s values)viewitems
(...)viewkeys
(...)viewvalues
(...)Parameters: length : int
When adding items to the collection, they are checked if the have this length.
Attributes
attr_length
Uniform length of all attributes in a collection Methods
clear
(() -> None. Remove all items from D.)copy
(\*args, \*\*kwargs)Create a copy of a collection. fromkeys
(...)v defaults to None. get
((k[,d]) -> D[k] if k in D, ...)has_key
((k) -> True if D has a key k, else False)items
(() -> list of D’s (key, value) pairs, ...)iteritems
(() -> an iterator over the (key, ...)iterkeys
(() -> an iterator over the keys of D)itervalues
(...)keys
(() -> list of D’s keys)match
(d[, strict])Given a dictionary describing selection, return mask for matching items pop
((k[,d]) -> v, ...)If key is not found, d is returned if given, otherwise KeyError is raised popitem
(() -> (k, v), ...)2-tuple; but raise KeyError if D is empty. set_length_check
(value)Parameters: setdefault
((k[,d]) -> D.get(k,d), ...)update
(source[, copyvalues, memo])Parameters: values
(() -> list of D’s values)viewitems
(...)viewkeys
(...)viewvalues
(...)