Skip to content

Commit 1811fe8

Browse files
edit main module to match the edited function
1 parent ddcc758 commit 1811fe8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/diffpy/labpdfproc/labpdfprocapp.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ def get_args(override_cli_inputs=None):
6363
help=(
6464
f"The quantity on the independent variable axis. Allowed "
6565
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."
6867
),
6968
default="tth",
7069
)
@@ -160,19 +159,19 @@ def main():
160159
input_pattern.insert_scattering_quantity(
161160
xarray,
162161
yarray,
163-
"tth",
162+
args.xtype,
164163
scat_quantity="x-ray",
165164
name=filepath.stem,
166165
metadata=load_metadata(args, filepath),
167166
)
168167

169-
absorption_correction = compute_cve(input_pattern, args.mud, args.method)
168+
absorption_correction = compute_cve(input_pattern, args.mud, args.method, args.xtype)
170169
corrected_data = apply_corr(input_pattern, absorption_correction)
171170
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)
173172

174173
if args.output_correction:
175-
absorption_correction.dump(f"{corrfile}", xtype="tth")
174+
absorption_correction.dump(f"{corrfile}", xtype=args.xtype)
176175

177176

178177
if __name__ == "__main__":

0 commit comments

Comments
 (0)