We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd8b50 commit 7c165c7Copy full SHA for 7c165c7
src/diffpy/labpdfproc/tools.py
@@ -4,6 +4,7 @@
4
5
WAVELENGTHS = {"Mo": 0.71, "Ag": 0.59, "Cu": 1.54}
6
known_sources = [key for key in WAVELENGTHS.keys()]
7
+METADATA_KEYS_TO_EXCLUDE = ["output_correction", "force_overwrite", "input", "input_paths"]
8
9
10
def set_output_directory(args):
@@ -240,8 +241,7 @@ def load_metadata(args, filepath):
240
241
242
args = _set_anode_type(args)
243
metadata = vars(args)
- exclude_keys = ["output_correction", "force_overwrite", "input", "input_paths"]
244
- for key in exclude_keys:
+ for key in METADATA_KEYS_TO_EXCLUDE:
245
metadata.pop(key, None)
246
metadata["input_directory"] = str(filepath)
247
metadata["output_directory"] = str(metadata["output_directory"])
0 commit comments