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
assertisinstance(cls.n_shunt, (int, dt_int)), f"Your backend does not support shunt, the class should define `n_shunt`as an int, found {cls.n_shunt}"
120
+
assertisinstance(cls.n_shunt, (int, dt_int)), f"Your backend does not support shunt, the class should define `n_shunt`as an int, found {cls.n_shunt} ({type(cls.n_shunt)})"
121
121
assertcls.name_shuntisnotNone, f"Your backend does not support shunt, the class should define `name_shunt` (cls.name_shunt should not be None)"
122
122
assertcls.shunt_to_subidisnotNone, f"Your backend does not support shunt, the class should define `shunt_to_subid` (cls.shunt_to_subid should not be None)"
123
-
assertisinstance(backend.n_shunt, (int, dt_int)), f"Your backend does support shunt, `backend.n_shunt` should be an int, found {cls.n_shunt}"
124
-
assertbackend.name_shuntisnotNone, f"Your backend does not support shunt, backend.name_shunt should not be None"
125
-
assertbackend.shunt_to_subidisnotNone, f"Your backend does not support shunt, backend.shunt_to_subid should not be None"
123
+
# these attributes are "deleted" from the backend instance
124
+
# and only stored in the class
125
+
# assert isinstance(backend.n_shunt, (int, dt_int)), f"Your backend does support shunt, `backend.n_shunt` should be an int, found {backend.n_shunt} ({type(backend.n_shunt)})"
126
+
# assert backend.name_shunt is not None, f"Your backend does not support shunt, backend.name_shunt should not be None"
127
+
# assert backend.shunt_to_subid is not None, f"Your backend does not support shunt, backend.shunt_to_subid should not be None"
0 commit comments