treams.PhysicsArray.relax¶
- classmethod PhysicsArray.relax(*args, mro=None, **kwargs)¶
Try creating AnnotatedArray subclasses if possible.
Subclasses can impose stricter conditions on the Annotations. To allow a simple “decaying” of those subclasses it is possible to create them with this classmethod. It attempts array creations along the method resolution order until it succeeds.
- Parameters:
mro (array-like, optional) – Method resolution order along which to create the subclass. By default it takes the order of the calling class.
Note
All other arguments are the same as for the default initialization.