Skip to content

add docs for check_and_build_global_config() - #270

Merged
sbillinge merged 5 commits into
diffpy:mainfrom
yucongalicechen:user-info2
Dec 25, 2024
Merged

add docs for check_and_build_global_config()#270
sbillinge merged 5 commits into
diffpy:mainfrom
yucongalicechen:user-info2

Conversation

@yucongalicechen

Copy link
Copy Markdown
Contributor

closes#268
@sbillinge ready for review

Comment threaddoc/source/examples/tools_example.rst
Comment threaddoc/source/examples/tools_example.rst
Comment threaddoc/source/utilities/tools_utility.rst
@codecov

codecovBot commented Dec 23, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.68%. Comparing base (d791c63) to head (13742d0).
Report is 10 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #270 +/- ##
=======================================
Coverage 98.68% 98.68% =======================================
Files 8 8 Lines 379 379 =======================================
Hits 374 374 Misses 5 5 



def stringify(obj):
def _stringify(obj):

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this function private and remove unncessary functions

@sbillingesbillinge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beautifully done. Just a couple of suggestions in line

Comment threaddoc/source/examples/tools_example.rst Outdated
Please enter your orcid ID if you know it: 0000-0000-0000-0000


After receiving the inputs, the function will write the following to the file:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe ".... the diffpyconfig.json file in the users home directory"?

On the one hand it is a bit repetitive (also did elsewhere), but maybe it is better to be clear?

Comment threaddoc/source/utilities/tools_utility.rst Outdated

- ``check_and_build_global_config()``: This function helps create a global configuration file
that can be used by ``get_user_info()``.
If no existing configuration file is found, and the user allows inputs, this function prompts for information.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "user allows inputs" is confusing so I recommend to delete that.

Comment threaddoc/source/examples/tools_example.rst
Comment threaddoc/source/utilities/tools_utility.rst
@yucongalicechen

Copy link
Copy Markdown
ContributorAuthor

@sbillinge ready for review!

@sbillinge
sbillinge merged commit bd1b346 into diffpy:mainDec 25, 2024
@yucongalicechen
yucongalicechen deleted the user-info2 branch December 26, 2024 16:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix typo, remove unncessary functions, and add example for update_config_workflow

2 participants

@yucongalicechen@sbillinge