Refactoring of the code - now there is a function to calculate the spindle and cell parameters from a single path and condition, and the script is used to process multiple files/conditions at the same time