Raw data extraction question
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Fri Aug 28 13:09:52 EDT 2009
En Wed, 26 Aug 2009 12:18:23 -0300, Maggie <la.foma at gmail.com> escribió:
> i have event timing stretch of code i need to alter. here is code
> below:
> --------------
> # we start each run with one full silent trial
> # creating a "stub" with the duration of a full block
> # less the discarded acquisitions
> stub = block_dur - (distax * tr)
>
> feed = sys.stdin.readlines()
> sess = -1
> for line in feed:
> if re.search(line != rest):
> time = (line + line (-1)) + (distax * tr)
> print time
>
> elif (line(-1) = rest):
> # block onsets are determined by
> # block number, block duration,
> # and the stub; 3dDeconvolve
> # takes care of making these
> # "global"
> time = (line) + (distax * tr)
> print time
> -----
When you post some piece of code, copy & paste it from the original
source; don't retype. The code above don't even compile.
> my concern is that it is extracting line number and not data contained
> on a given line. I need it to extract data from each line (excluding
> lines with spaces and/or lines that contain the word "pause" or
> "silence"). Basically i need ONLY raw data extracted from line 1 -
> onward.
How does a line look like? Post some sample lines.
--
Gabriel Genellina
More information about the Python-list
mailing list