-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Handle custom terms in datalink.bysemantics again. #299
Conversation
Codecov Report
@@ Coverage Diff @@
## main #299 +/- ##
==========================================
+ Coverage 75.50% 75.53% +0.02%
==========================================
Files 44 44
Lines 5128 5134 +6
==========================================
+ Hits 3872 3878 +6
Misses 1256 1256
Continue to review full report at Codecov.
|
f1d6dbd
to
4f91b2d
Compare
CHANGES.rst
Outdated
@@ -1,6 +1,8 @@ | |||
1.3 (unreleased) | |||
================ | |||
|
|||
- pyvo deals with non-core terms in datalink.bysemantics again. | |||
This would fix issue #298. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to append the PR number ([#299]
) to make the validation happy. If this is an issue that requires quick release, we should do a minor release - 1.2.2. @tomdonaldson - do you agree?
if isinstance(semantics, str): | ||
semantics = [semantics] | ||
semantics = [term.lstrip("#") for term in semantics] | ||
|
||
core_terms, other_terms = [], [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to use lists instead of sets?
This is done by extracting non-core terms -- really, anything with a URI that starts with something that is not the core URI -- and excepting it from our normalisation.
4f91b2d
to
cf3c458
Compare
On Thu, Feb 10, 2022 at 05:52:46PM -0800, Adrian wrote:
> @@ -1,6 +1,8 @@
1.3 (unreleased)
================
+- pyvo deals with non-core terms in datalink.bysemantics again.
+ This would fix issue #298.
You need to append the PR number (`[#299]`) to make the validation
Put that in, forced-pushed.
happy. If this is an issue that requires quick release, we should
do a minor release - 1.2.2. @tomdonaldson - do you agree?
A minor release would be lovely, as it'd put lift quite a load from
my consciousness...
> if isinstance(semantics, str):
semantics = [semantics]
- semantics = [term.lstrip("#") for term in semantics]
+
+ core_terms, other_terms = [], []
Is there a reason to use lists instead of sets?
No -- one *could* work with sets all along and not just at the end.
There's not much benefit to performance or clarity either way,
though, so unless there's an aspect to this I'm missing I'd leave it
this way.
|
I've asked the bug reporter about a verifier, and he offered {{{ This is looking good. Hence I'd say this is fine to merge. Is there anything I can do to get this into a release as fast as |
@msdemlei - thanks for the fix. We'll try to do the release in the next day or so. |
This is done by extracting non-core terms -- really, anything with a URI
that starts with something that is not the core URI -- and excepting
it from our normalisation.
This would fix #298.