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

Bug in ReferencedObject::__init__ #430

Open
manulera opened this issue Apr 11, 2024 · 2 comments · Fixed by #431 · May be fixed by #436
Open

Bug in ReferencedObject::__init__ #430

manulera opened this issue Apr 11, 2024 · 2 comments · Fixed by #431 · May be fixed by #436

Comments

@manulera
Copy link
Member

Hello, I think there is an error in ReferencedObject::__init__. I found it like this:

import sbol2

participation = sbol2.Participation('p', participant='p1')
print(sbol2.ReferencedObject(participation, 'aa','bb', '1', '1', [], 'aaa'))
print(participation.participant) #prints none

I think I found the error, posting a PR soon.

manulera added a commit to manulera/pySBOL2 that referenced this issue Apr 11, 2024
@manulera manulera mentioned this issue Apr 11, 2024
jakebeal added a commit that referenced this issue Apr 11, 2024
jakebeal added a commit that referenced this issue Apr 11, 2024
@jakebeal
Copy link
Collaborator

The patch committed was not working correctly. I am going undoing it and we can try again with a new patch that the GitHub actions actually run against

@jakebeal jakebeal reopened this Apr 11, 2024
@manulera
Copy link
Member Author

manulera commented Apr 11, 2024

This is fixed now. This should be fixed with #436

I don't understand what is the use-case for the if statement. When is self._sbol_owner None, and why not assign the property in that case and add an empty list instead?

I noticed that there is other similar if statements in the file, maybe it would be good to review them.

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 a pull request may close this issue.

2 participants