The functions to create the microstructures are really long. Although they have docstrings, the internal behaviour of the function is complicated and not easy to follow.
Proposed solution
Consider splitting the long methods into smaller methods that do separate things. You can document these smaller methods better and the 'main' method that ties everything together will be more readible.
Problem
The functions to create the microstructures are really long. Although they have docstrings, the internal behaviour of the function is complicated and not easy to follow.
Proposed solution
Consider splitting the long methods into smaller methods that do separate things. You can document these smaller methods better and the 'main' method that ties everything together will be more readible.