Skip to content

Commit c29053d

Browse files
remove unnecessary function
1 parent ddf7180 commit c29053d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/diffpy/utils/tools.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,6 @@ def _load_config(file_path):
4545
return {}
4646

4747

48-
def _create_global_config(args):
49-
username = input(
50-
f"Please enter the name you would want future work to be credited to " f"[{args.get('username', '')}]: "
51-
).strip() or args.get("username", "")
52-
email = input(f"Please enter the your email " f"[{args.get('email', '')}]: ").strip() or args.get("email", "")
53-
return_bool = False if username is None or email is None else True
54-
with open(Path().home() / "diffpyconfig.json", "w") as f:
55-
f.write(json.dumps({"username": _stringify(username), "email": _stringify(email)}))
56-
print(
57-
f"You can manually edit the config file at {Path().home() / 'diffpyconfig.json'} using any text editor.\n"
58-
f"Or you can update the config file by passing new values to get_user_info(), "
59-
f"see examples here: https://www.diffpy.org/diffpy.utils/examples/toolsexample.html"
60-
)
61-
return return_bool
62-
63-
6448
def get_user_info(owner_name=None, owner_email=None, owner_orcid=None):
6549
"""
6650
Get name, email and orcid of the owner/user from various sources and return it as a metadata dictionary

0 commit comments

Comments
 (0)