def _subsampling_sanity_check(self):
dxs = np.array(self.codestream.segment[<NUM_LIT:1>].xrsiz)<EOL>dys = np.array(self.codestream.segment[<NUM_LIT:1>].yrsiz)<EOL>if np.any(dxs - dxs[<NUM_LIT:0>]) or np.any(dys - dys[<NUM_LIT:0>]):<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>msg = msg.format(siz_segment=str(self.codestream.segment[<NUM_LIT:1>]))<EOL>raise IOError(msg)<EOL><DEDENT>
Check for differing subsample factors.