-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
🪓🪑 Fix TriplesNumericLiteralFactory split #594
🪓🪑 Fix TriplesNumericLiteralFactory split #594
Conversation
Would you please add a minimal unit test that shows this works now? Somewhere in https://github.com/pykeen/pykeen/blob/master/tests/test_triples_factory.py is probably fine |
Yes, of course! |
Hi @cthoyt, |
@PyKEEN-bot test please! |
Trigger CI
@PyKEEN-bot test please |
Thank you @Rodrigo-A-Pereira for being patient! It seems everyone on the team was a bit preoccupied lately so this took longer than expected. We really appreciate the bug fix :) |
Hi @cthoyt, |
Closes #593
Link to the relevant Bug(s)
This pull request is relative to the
TriplesNumericLiteralFactory
splitting bug mentioned on issue #593.Description of the Change
The fix was done with small changes to the
TriplesNumericLiteralFactory
class.Overwriting the
clone_and_exchange_triples
that it had from the parent (TriplesFactory
). The new clone_and_exchange_triples returns aTriplesNumericLiteralFactory
to which it is passed thenumeric_triples
of the originalTriplesNumericLiteralFactory
that is being spliced.TriplesNumericLiteralFactory
now has a new optional constructor parameternumeric_triples
.numeric_triples
is now an attribute ofTriplesNumericLiteralFactory
that can be accessed from outside.Possible Drawbacks
I don't think there is any drawback deriving from this change.
Verification Process
Running the code example given of issue #593, now correctly returns:
Release Notes
Make it so that when using split on a
TriplesNumericLiteralFactory
object the return objects are alsoTriplesNumericLiteralFactory
objects.