Why does using scipy.optimize.curvefit with numpy.piecewise throw Attribute and Runtime Errors?
Here is a reduced example of some curve fitting code I am working on.
Why can’t I fit my model to Young’s interference data accurately?
I’m trying to fit my experimental data from Young’s interference experiment to a theoretical model using Python’s scipy.optimize
module.