generic#
- py_fatigue.geometry.generic.kwargs_only(cls)#
Decorator to make a class’s __init__ method accept only keyword arguments.
This is useful for dataclasses, which by default accept positional arguments.
- class py_fatigue.geometry.generic.CrackGeometryMixin(initial_depth: float[float])#
Mixin class to define the abstract methods for the AbstractCrackGeometry class.
- Parameters:
initial_depth (float) – The initial depth of the crack.