mvpa2.generators.base.SampleAttributesCollection¶
-
class
mvpa2.generators.base.
SampleAttributesCollection
(items=None, length=None)¶ Container for attributes of samples (i.e. labels, chunks...)
Methods
clear
(() -> None. Remove all items from D.)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)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. setdefault
((k[,d]) -> D.get(k,d), ...)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.
Methods
clear
(() -> None. Remove all items from D.)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)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. setdefault
((k[,d]) -> D.get(k,d), ...)values
(() -> list of D’s values)viewitems
(...)viewkeys
(...)viewvalues
(...)