Inheritance diagram for nipy.neurospin.glm_files_layout.contrast_tools:
Set of utilities to handle contrasts Some naming conventions are related to brainvisa environment.
Author : Lise Favre, Bertrand Thirion, 2008-2010
Bases: dict
Class used to define contrasts besides being a dictiornay, it allows basic algebra on contrasts (multiplication, addition, subtraction)
Methods
clear | |
copy | Generic (shallow and deep) copying operations. |
fromkeys | |
get | |
has_key | |
items | |
iteritems | |
iterkeys | |
itervalues | |
keys | |
pop | |
popitem | |
setdefault | |
update | |
values | |
viewitems | |
viewkeys | |
viewvalues |
D.clear() -> None. Remove all items from D.
D.copy() -> a shallow copy of D
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v. v defaults to None.
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
D.has_key(k) -> True if D has a key k, else False
D.items() -> list of D’s (key, value) pairs, as 2-tuples
D.iteritems() -> an iterator over the (key, value) items of D
D.iterkeys() -> an iterator over the keys of D
D.itervalues() -> an iterator over the values of D
D.keys() -> list of D’s keys
D.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised
D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty.
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
D.update(E, **F) -> None. Update D from dict/iterable E and F. If E has a .keys() method, does: for k in E: D[k] = E[k] If E lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
D.values() -> list of D’s values
D.viewitems() -> a set-like object providing a view on D’s items
D.viewkeys() -> a set-like object providing a view on D’s keys
D.viewvalues() -> an object providing a view on D’s values
Bases: object
Class to handle contrasts when in a brainvisa-like envrionment. See ./glm_tools for more details on this framework
Methods
get_dictionnary | |
save_dic |
Automatically generate some contrasts from a ‘misc’ file
Parameters : | misc_info_path, string, optional :
contrast_path: string, optional, :
model, string, optional, :
misc: dictionary, optional :
verbose: boolean, optional, :
|
---|
Instantiate a contrast object and write it in a file
Parameters : | contrast_file: string, :
verbose, bool: :
|
---|---|
Returns : | the contrast object : |