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
In addition to using node_type_override to make the Model "see" the Node as that type, you may also need to set the __name__, as some code uses this property to distinguish the type. For example, here which will impact if you are making a custom River subclass. In such a case in the subclass __init__ you would need to set self.__class__.__name__ = "River".
This needs to be updated in the documentation, or (preferably) this kind of behaviour needs to be fixed in some way, as it is not a good way to distinguish Node types.
The text was updated successfully, but these errors were encountered:
In addition to using
node_type_override
to make theModel
"see" theNode
as that type, you may also need to set the__name__
, as some code uses this property to distinguish the type. For example, here which will impact if you are making a customRiver
subclass. In such a case in the subclass__init__
you would need to setself.__class__.__name__ = "River"
.This needs to be updated in the documentation, or (preferably) this kind of behaviour needs to be fixed in some way, as it is not a good way to distinguish
Node
types.The text was updated successfully, but these errors were encountered: