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

Use curies' Converter in strict=False mode. #409

Merged
merged 4 commits into from
Aug 11, 2023
Merged

Conversation

hrshdhgd
Copy link
Contributor

@hrshdhgd hrshdhgd commented Aug 10, 2023

This way, when a prefix_map has duplicate uri_prefix or prefix from the user, curies will not throw an error. sssom-py already gives priority to a user-defined prefix map over the default one (which now is EPM from bioregistry).

@hrshdhgd hrshdhgd marked this pull request as ready for review August 10, 2023 15:11
@hrshdhgd hrshdhgd requested a review from matentzn August 10, 2023 15:11
@matentzn
Copy link
Collaborator

Thank you @hrshdhgd!

sssom-py already gives priority to a user-defined prefix map over the default one (which now is EPM from bioregistry

Just so I can sleep well: can we add a test that is invoking sssom parse in "merged" mode with an incomplete curie map that contains at least two conflicting prefixes (compared to bioregistry)?

@hrshdhgd
Copy link
Contributor Author

Done.

matentzn
matentzn previously approved these changes Aug 11, 2023
Copy link
Collaborator

@matentzn matentzn left a comment

Choose a reason for hiding this comment

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

One optional suggestions, then feel free to merge.

tests/test_parsers.py Outdated Show resolved Hide resolved
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
@hrshdhgd hrshdhgd merged commit a23c4dd into master Aug 11, 2023
6 checks passed
@hrshdhgd hrshdhgd deleted the issues-408-269 branch August 11, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants