I would like to take my 8run (8 row) timing files and split them up into 8 individual .1D files (because I want to run 3ddeconvolve on each run separately - is there another way to do this??).
It sounds like I can do this with timing tool? Perhaps I have the format of my partitions file wrong?
Should the partitions file have the names of the new timing files, each name on each row?
like this?
run1
run2
run3
run4
run5
run5
run7
run8
I get odd errors:
Traceback (most recent call last):
File "/home/peterk/abin/timing_tool.py", line 2009, in <module>
sys.exit(main())
File "/home/peterk/abin/timing_tool.py", line 2003, in main
rv = ard.process_options()
File "/home/peterk/abin/timing_tool.py", line 1328, in process_options
if self.timing.partition(val[0], val[1]): return 1
File "/home/peterk/abin/lib_timing.py", line 136, in partition
print "** timing and label row lengths differ at line %d"%ind+1
TypeError: cannot concatenate 'str' and 'int' objects
This does not work either:
run1, run2, run3, run4, run5, run6, run7, run8
** Timing nrows differs from partition nrows (8, 1)
Example 5. Partition the stimulus timing file 'response_times.1D' into multiple timing files based on the labels in a partition file,
partitions.1D. If partitions.txt contains (0, correct, incorrect), there will be 2 output timing files, new_times_correct.1D and
new_times_incorrect.1D. Times where the partition label is '0' will be skipped.
timing_tool.py -timing response_times.1D \
-partition partitions.txt new_times