Skip to content

Commit

Permalink
better wording for capture user info
Browse files Browse the repository at this point in the history
  • Loading branch information
Alison Wu authored and Alison Wu committed Nov 5, 2024
1 parent d24acb6 commit 0a59a0b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions news/capture-user.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* Better wording on the capture user info functionality

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
4 changes: 3 additions & 1 deletion src/diffpy/utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def get_user_info(args=None):
global_config = load_config(Path().home() / "diffpyconfig.json")
local_config = load_config(Path().cwd() / "diffpyconfig.json")
if global_config is None and local_config is None:
warnings.warn("No global config file, please follow prompts below.")
warnings.warn("No global config file, please follow prompts below. "
"The global config file is very important in crediting your work in the future. "
"For more information, please refer to www.diffpy.org/diffpy.utils/examples/toolsexample.html")
config_bool = _create_global_config(args)
global_config = load_config(Path().home() / "diffpyconfig.json")
config = _sorted_merge(clean_dict(global_config), clean_dict(local_config), clean_dict(args))
Expand Down

0 comments on commit 0a59a0b

Please sign in to comment.