def test_reduction_method(self): # a quick smoke test to check that the reduction can occur a = ReducePlatypus('PLP0000711.nx.hdf', data_folder=self.path, rebin_percent=4) # try reduction with the reduce method a.reduce('PLP0000708.nx.hdf', data_folder=self.path, rebin_percent=4) # try reduction with the __call__ method a('PLP0000708.nx.hdf', data_folder=self.path, rebin_percent=4) # try writing offspecular data a.write_offspecular('offspec.xml', 0)