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 9135819 commit 78fce6cCopy full SHA for 78fce6c
src/diffpy/labpdfproc/tools.py
@@ -1,3 +1,4 @@
1
+import copy
2
from pathlib import Path
3
4
from diffpy.utils.tools import get_package_info, get_user_info
@@ -231,7 +232,7 @@ def load_metadata(args, filepath):
231
232
A dictionary with relevant arguments from the parser
233
"""
234
- metadata = vars(args)
235
+ metadata = copy.deepcopy(vars(args))
236
for key in METADATA_KEYS_TO_EXCLUDE:
237
metadata.pop(key, None)
238
metadata["input_directory"] = str(filepath)
0 commit comments