You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using the python classes for the biolink model, currently trying to create a GeneToGoTermAssociation object.
Whatever I pass as the subject of the association, it gets cast to a "GeneId" and GeneId can't pass through the post_init validation for FunctionalAssociation. It fails with this error:
TypeError: biolink_model.datamodel.model.MacromolecularMachineMixin() argument after ** must be a mapping, not GeneId
To Reproduce
Here's a minimal reproduction:
from biolink_model.datamodel import GeneToGoTermAssociation, Gene
Describe the bug
I'm using the python classes for the biolink model, currently trying to create a GeneToGoTermAssociation object.
Whatever I pass as the subject of the association, it gets cast to a "GeneId" and GeneId can't pass through the post_init validation for FunctionalAssociation. It fails with this error:
TypeError: biolink_model.datamodel.model.MacromolecularMachineMixin() argument after ** must be a mapping, not GeneId
To Reproduce
Here's a minimal reproduction:
Expected behavior
It should be possible to create those objects using the python classes
What working group (or team) did this request originate from?
NCATS Informatics
The text was updated successfully, but these errors were encountered: