File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -45,22 +45,6 @@ def _load_config(file_path):
45
45
return {}
46
46
47
47
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
-
64
48
def get_user_info (owner_name = None , owner_email = None , owner_orcid = None ):
65
49
"""
66
50
Get name, email and orcid of the owner/user from various sources and return it as a metadata dictionary
You can’t perform that action at this time.
0 commit comments