Skip to content

Commit

Permalink
remove wavelength from loading metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
yucongalicechen committed Oct 31, 2024
1 parent 666a5eb commit 213948c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/diffpy/labpdfproc/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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


def set_output_directory(args):
Expand Down
1 change: 0 additions & 1 deletion tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ def test_load_metadata(mocker, user_filesystem):
"mud": 2.5,
"input_directory": str(filepath),
"anode_type": "Mo",
"wavelength": 0.71,
"output_directory": str(Path.cwd().resolve()),
"xtype": "tth",
"method": "polynomial_interpolation",
Expand Down

0 comments on commit 213948c

Please sign in to comment.