- Why is this change needed? Is there a related issue or a new feature to be added?
- Explain the main changes introduced by this pull request for the reviewer.
- I have performed a self-review of my own code.
- I have commented my code, added docstrings and data types to function definitions.
- I have added pytests to check whether my feature / fix works.
Please make sure to follow our best practices in the Contributing guidelines.