Slit scan guess was sometimes strugglnig to converge due to initial guesses outside of the data, this causes all differentials to go to zero for some parameters and hence optimizer cannot work.
Simplified heuristic guessing function that keeps all initial parameters within the bounds of the data seemed to work well to give the optimizer a good chance of converging to a decent fit:
Slit scan guess was sometimes strugglnig to converge due to initial guesses outside of the data, this causes all differentials to go to zero for some parameters and hence optimizer cannot work.
Simplified heuristic guessing function that keeps all initial parameters within the bounds of the data seemed to work well to give the optimizer a good chance of converging to a decent fit:
Needs unit tests etc adding