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 spectrum fitting utils to support wildcards in parameter name matching #455

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

joelvbernier
Copy link
Member

Enhance parameter name matching to take wildcards.

Enhance parameter name matching to take wildcards.
@joelvbernier joelvbernier requested a review from psavery August 6, 2022 16:06
@joelvbernier joelvbernier self-assigned this Aug 6, 2022
@joelvbernier joelvbernier added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 6, 2022
@joelvbernier joelvbernier marked this pull request as draft August 6, 2022 16:11
@joelvbernier
Copy link
Member Author

This needs a little more work, since it will only supports wildcard strings now... either I live with it or find a way to preserve (or choose by kwarg?) the old functionality using __contains__ where the user could specify any substring w/o wildcards.

Any ideas here @psavery or @cjh1 or @donald-e-boyce ?

Copy link
Collaborator

@psavery psavery left a comment

Choose a reason for hiding this comment

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

LGTM

hexrd/fitting/utils.py Outdated Show resolved Hide resolved
@joelvbernier joelvbernier changed the title Update utils.py Update spectrum fitting utils to support wildcards in parameter name matching Aug 9, 2022
@joelvbernier joelvbernier requested a review from psavery August 9, 2022 19:05
@joelvbernier
Copy link
Member Author

@psavery -- I think the previous commit is providing the behavior we want! Nice one!

@joelvbernier joelvbernier marked this pull request as ready for review August 9, 2022 19:06
Copy link
Collaborator

@psavery psavery left a comment

Choose a reason for hiding this comment

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

LGTM

@joelvbernier joelvbernier merged commit f9da674 into master Aug 10, 2022
@joelvbernier joelvbernier deleted the update-calibration-utils branch August 10, 2022 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants