Skip to content

Commit ef0f62a

Browse files
add comment explaining the reason for excluding wavelength from metadata
1 parent 4adafd3 commit ef0f62a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
WAVELENGTHS = {"Mo": 0.71, "Ag": 0.59, "Cu": 1.54}
88
known_sources = [key for key in WAVELENGTHS.keys()]
9+
10+
# Exclude wavelength from metadata to prevent duplication,
11+
# as the dump function in diffpy.utils writes it explicitly.
912
METADATA_KEYS_TO_EXCLUDE = ["output_correction", "force_overwrite", "input", "input_paths", "wavelength"]
1013

1114

0 commit comments

Comments
 (0)