Skip to content

Commit e36726e

Browse files
Alison WuAlison Wu
authored andcommitted
edited message and prompt to capture user info
1 parent 2732b49 commit e36726e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/diffpy/utils/tools.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ def _sorted_merge(*dicts):
7777

7878
def _create_global_config(args):
7979
username = input(
80-
f"Please enter the name of the user would want future work to be credited to "
80+
f"Please enter the name you would want future work to be credited to "
8181
f"[{args.get('username', '')}]: "
8282
).strip() or args.get("username", "")
8383
email = input(
84-
f"Please enter the email of the user "
84+
f"Please enter the your email "
8585
f"[{args.get('email', '')}]: "
8686
).strip() or args.get("email", "")
8787
return_bool = False if username is None or email is None else True
@@ -115,7 +115,11 @@ def get_user_info(args=None):
115115
local_config = load_config(Path().cwd() / "diffpyconfig.json")
116116
if global_config is None and local_config is None:
117117
print(
118-
"No global config file, please follow prompts below. "
118+
"No global configuration file was found containing information about the user to associate with the data. "
119+
"By following the prompts below you can add your name and email to this file on the current computer and "
120+
"your name will be automatically associated with subsequent diffpy data by default. "
121+
"This is not recommended on a shared or public computer. "
122+
"You will only have to do that once. "
119123
"For more information, please refer to www.diffpy.org/diffpy.utils/examples/toolsexample.html"
120124
)
121125
config_bool = _create_global_config(args)

0 commit comments

Comments
 (0)