def conv_to_Iqrqz(self): # calls the C-code in RQconv self.q_data_available = True if self.qdata is not None: del self.qdata RQconv.pre_conv_Iqrqz(self.data.astype(np.int32), self.exp) self.qdata = np.ones((self.exp.nz, self.exp.nr), dtype=np.int32) RQconv.conv_to_Iqrqz(self.data.astype(np.int32), self.qdata, self.exp)