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
Currently SimpleComponent and GenericComponentAssembly classes have a classname attribute and an identifier attribute which are initialised to the same value. During operation the identifier gets updated e.g. from pin to pin0, pin1 etc. based on the cubit design tree.
Since the original name is not an aspect of the instance, it should be a class variable defined, something like:
If we implement abstract base classes, subclasses could be required to have a name property like so, and a class variable would satisfy that requirement:
classAssembly(ABC):
@property@abstractmethoddefname(self) ->str:
"""Name of the assembly type."""
Edit: spelling
The text was updated successfully, but these errors were encountered:
Currently
SimpleComponent
andGenericComponentAssembly
classes have aclassname
attribute and anidentifier
attribute which are initialised to the same value. During operation the identifier gets updated e.g. frompin
topin0
,pin1
etc. based on the cubit design tree.Since the original name is not an aspect of the instance, it should be a class variable defined, something like:
If we implement abstract base classes, subclasses could be required to have a name property like so, and a class variable would satisfy that requirement:
Edit: spelling
The text was updated successfully, but these errors were encountered: