@agramfort while we are at it. Does this compensation handling scheme expect that the data inside a Raw file are uncompensated while the matrix passed produces the compensation? In our 4D case very often the data come out of the machine in a compensated state and applying the compensation seems to restore the original raw data ...