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

Refactor the configuration system #51

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

hamelin
Copy link
Contributor

@hamelin hamelin commented Nov 14, 2024

The alternative approach proposed here leverages function decorators to supply a user's choice of default values for the many parameters of the main entry points to DataMapPlot. While a bit more complicated than the former approach, this one avoids the awkward playing with the locals() dictionary, and ensures that strictly positional parameters to configuration-completed functions can never be set through the configuration file.

@hamelin hamelin requested a review from lmcinnes November 14, 2024 14:10
@lmcinnes
Copy link
Contributor

I like the decorator approach; it's much cleaner to use (just harder to get working properly initially, but you've done that hard work already).

@lmcinnes lmcinnes merged commit 9901082 into TutteInstitute:main Nov 14, 2024
2 checks passed
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