Python power law fit with upper limits & asymmetric errors in data using ODR
问题 I'm trying to fit some data to a power law using python. The problem is that some of my points are upper limits, which I don't know how to include in the fitting routine. In the data, I have put the upper limits as errors in y equal to 1, when the rest is much smaller. You can put this errors to 0 and change the uplims list generator, but then the fit is terrible. The code is the following: import numpy as np import matplotlib.pyplot as plt from scipy.odr import * # Initiate some data x = [1