A large amount of code is duplicated, and is not encapsulated in functions. That makes it harder to re-use (e.g. in batch calculations). We need to reorganise it, and also improve formatting (indentation, blank lines) and add comments explaining the code.
A large amount of code is duplicated, and is not encapsulated in functions. That makes it harder to re-use (e.g. in batch calculations). We need to reorganise it, and also improve formatting (indentation, blank lines) and add comments explaining the code.