The first feature update of PyRolL 2 provides a couple of convenience features, technical features and several new hooks.
Major features
- Possibility to give callables of one parameter (`self`) as explicit values to any hook to quickly specify a local dynamic value. The function will be evaluated at every hook call. 79
- Possibility to define wrapper hook functions, that will automatically delegate the hook call to other functions lower in the pipeline. This offers the possibility of modifying values of underlying models. Wrappers will be executed before all normal hook functions. 74
- Add `Profile.fits_material()` as a standard way of checking material keys in parameter databases. 71
- Add hooks related to elongation efficiency, a measure of the relation between spread and elongation. 66
- Add hooks related to cross-section filling and target filling. 83
- Add hooks regarding energy consumption and power. 85
- Add convenience plot methods to profiles, roll passes and grooves. 82
Minor features
- Add support for `rich` repr strings. 9ee26b4d57c0b2682a51ed9c6bb6dad90b2fa940
- Add `Unit.prev_of` and `Unit.next_of` methods. 75
- Add properties to profiles and grooves for getting the constructor arguments. 84
- Add a `type` property to `Hook`. 88
Bugfixes
- Add default strain=0 for profiles. 78
- Add transport velocity fallback to previous pass velocity. 77
- Let get the pass sequence out profile the values from last subunit as fallback. 73
- Default duration of rotator is now 0. 70
- Default profile length = 0 now in `Unit.InProfile`. 72
- Remove updating the out profile from the last disk element. 89
Acknowledgements
We want to thank G. Rothenbucher and K. van Putten for their valuable suggestions and feedback.