@@ -63,8 +63,7 @@ def get_args(override_cli_inputs=None):
63
63
help = (
64
64
f"The quantity on the independent variable axis. Allowed "
65
65
f"values: { * XQUANTITIES , } . If not specified then two-theta "
66
- f"is assumed for the independent variable. Only implemented for "
67
- f"tth currently."
66
+ f"is assumed for the independent variable."
68
67
),
69
68
default = "tth" ,
70
69
)
@@ -160,19 +159,19 @@ def main():
160
159
input_pattern .insert_scattering_quantity (
161
160
xarray ,
162
161
yarray ,
163
- "tth" ,
162
+ args . xtype ,
164
163
scat_quantity = "x-ray" ,
165
164
name = filepath .stem ,
166
165
metadata = load_metadata (args , filepath ),
167
166
)
168
167
169
- absorption_correction = compute_cve (input_pattern , args .mud , args .method )
168
+ absorption_correction = compute_cve (input_pattern , args .mud , args .method , args . xtype )
170
169
corrected_data = apply_corr (input_pattern , absorption_correction )
171
170
corrected_data .name = f"Absorption corrected input_data: { input_pattern .name } "
172
- corrected_data .dump (f"{ outfile } " , xtype = "tth" )
171
+ corrected_data .dump (f"{ outfile } " , xtype = args . xtype )
173
172
174
173
if args .output_correction :
175
- absorption_correction .dump (f"{ corrfile } " , xtype = "tth" )
174
+ absorption_correction .dump (f"{ corrfile } " , xtype = args . xtype )
176
175
177
176
178
177
if __name__ == "__main__" :
0 commit comments