Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Config to support ConfigParser keyword arguments #659

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ncoop57
Copy link

@ncoop57 ncoop57 commented Dec 22, 2024

This PR adds a cfg_kwargs argument to the Config object in the foundations module. This allows a user to pass keyword arguments directly to the ConfigParser object, allowing for things like overriding the behavior on how inline comments are handled. An example showcasing this functionality is also added to the docs.

@ncoop57 ncoop57 requested a review from jph00 December 22, 2024 19:36
@ncoop57
Copy link
Author

ncoop57 commented Dec 22, 2024

The integration test failure looks to be unrelated

@jph00
Copy link
Contributor

jph00 commented Dec 22, 2024

Yeah the integration test issue is due to a new bug in scipy, which has been fixed upstream but not released yet.

Copy link
Contributor

@jph00 jph00 left a comment

Choose a reason for hiding this comment

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

Thank you! Just a minor issue below.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you install ipywidgets (IIRC) and re-run the cell with /Users/nathan/.venv/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html so that warning doesn't turn up in the docs?

Copy link
Author

Choose a reason for hiding this comment

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

Okay, this is fixed now, good catch!

Sign up for free to 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.

2 participants