Package mvpa :: Package misc :: Package fsl :: Module base :: Class FslEV3

[hide private]
[frames] | no frames]

# Class FslEV3

source code

IO helper to read FSL's EV3 files.

This is a three-column textfile format that is used to specify stimulation protocols for fMRI data analysis in FSL's FEAT module.

Data is always read as `float`.

Instance Methods | [hide private]

__init__(self, source) Read and write FSL EV3 files. | source code

getNEVs(self) Returns the number of EVs in the file. | source code

getEV(self, evid) Returns a tuple of (onset time, simulus duration, intensity) for a certain EV. | source code

tofile(self, filename) Write data to a FSL EV3 file. | source code

toEvents(self, **kwargs) Convert into a list of Event instances. | source code

Class Variables | [hide private]

| onsets = `property(fget= lambda self: self ['onsets'])`
| durations = `property(fget= lambda self: self ['durations'])`
| intensities = `property(fget= lambda self: self ['intensities'])`
| nevs = `property(fget= getNEVs)`

Method Details | [hide private]

### toEvents(self, **kwargs)

source code

Convert into a list of Event instances.

Parameters:
  - `kwargs` - Any keyword arugment provided would be replicated, through all the entries. Useful to specify label or even a chunk