mne-tools/mne-python — pull request #424 by Eric89GXL (2013-02-01 18:54:00+00:00)
Title: FIX+ENH: Making calibration consistent, adding orig_format to raw

This is to address @mshamalainen's comment here:
https://github.com/mne-tools/mne-python/pull/419/files#L1R331

Basically, this does two things:

1. Add support for writing "int" type (32-bit integers). If users load a raw file, tinker with something in "info" (e.g., digitization), it would be nice if they could write the data back out in their original format. This should cover the last option, which @mshamalainen mentioned in his post, which is 32-bit ints.
2. He also mentioned that we should always calibrate and de-calibrated using "scale". Although we typically don't bother saving "scale" with epochs and evoked, I put them in the calibration calls for consistency (I think it's cleaner to have it than not).

Note that I added a parameter to `Raw` as `raw.orig_format` so users can easily tell which format their data had been stored in, since it's something I've been curious about before but it was difficult to tell.