def test_scan(self): '''Test that data are read.''' scan = Scan(self.fname, debug=True) scan.write('scan.hdf5', overwrite=True) scan.baseline_subtract('rough', plot=True)
def test_scan_baseline_unknown(self): '''Test that data are read.''' scan = Scan(self.fname, debug=True) scan.write('scan.hdf5', overwrite=True) with pytest.raises(ValueError): scan.baseline_subtract('asdfgh', plot=True)