File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
from diffpy .labpdfproc .functions import CVE_METHODS , apply_corr , compute_cve
7
7
from diffpy .labpdfproc .tools import known_sources , load_metadata , preprocessing_args
8
+ from diffpy .utils .diffraction_objects import XQUANTITIES , DiffractionObject
8
9
from diffpy .utils .parsers .loaddata import loadData
9
- from diffpy .utils .scattering_objects .diffraction_objects import XQUANTITIES , Diffraction_object
10
10
11
11
12
12
def define_arguments ():
@@ -170,12 +170,12 @@ def main():
170
170
f"exists. Please rerun specifying -f if you want to overwrite it."
171
171
)
172
172
173
- input_pattern = Diffraction_object (wavelength = args .wavelength )
174
173
xarray , yarray = loadData (filepath , unpack = True )
175
- input_pattern .insert_scattering_quantity (
176
- xarray ,
177
- yarray ,
178
- args .xtype ,
174
+ input_pattern = DiffractionObject (
175
+ xarray = xarray ,
176
+ yarray = yarray ,
177
+ xtype = args .xtype ,
178
+ wavelength = args .wavelength ,
179
179
scat_quantity = "x-ray" ,
180
180
name = filepath .stem ,
181
181
metadata = load_metadata (args , filepath ),
You can’t perform that action at this time.
0 commit comments