mne-tools/mne-python — pull request #15 by mluessi (2011-12-22 18:39:13+00:00)
Title: Support for modifying data of Raw object

Added support for modifying the data in Raw objects, which is useful when implementing preprocessing operations in python.

Also added unit tests and fixed a bug where Raw.save() did not store the correct first_sample time* .

* When using Raw.save(), tmin and tmax are relative to the start of the file, i.e., the first sample is assumed to be at time 0. Before, using Raw.save() would set first_sample relative to the start of the file (i.e., tmin=0 results in first_sample=0), which causes problems (e.g. when event files are used, which store the absolute time). I modified this behavior s.t. the correct first_sample time is saved.