Skip to content

Commit 213948c

Browse files
remove wavelength from loading metadata
1 parent 666a5eb commit 213948c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: src/diffpy/labpdfproc/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
WAVELENGTHS = {"Mo": 0.71, "Ag": 0.59, "Cu": 1.54}
88
known_sources = [key for key in WAVELENGTHS.keys()]
9-
METADATA_KEYS_TO_EXCLUDE = ["output_correction", "force_overwrite", "input", "input_paths"]
9+
METADATA_KEYS_TO_EXCLUDE = ["output_correction", "force_overwrite", "input", "input_paths", "wavelength"]
1010

1111

1212
def set_output_directory(args):

Diff for: tests/test_tools.py

-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ def test_load_metadata(mocker, user_filesystem):
336336
"mud": 2.5,
337337
"input_directory": str(filepath),
338338
"anode_type": "Mo",
339-
"wavelength": 0.71,
340339
"output_directory": str(Path.cwd().resolve()),
341340
"xtype": "tth",
342341
"method": "polynomial_interpolation",

0 commit comments

Comments
 (0)