Change to profile model interface
In order to allow for more complex profile models (e.g. those which include configurable basis functions) the interface to models has had to change slightly. Methods of the model, e.g. `mtanh.prediction`, are no longer static, and so can not be called directly from the class. For example, you could previously do
Python
from pedinf.models import mtanh
fit = mtanh.prediction(radius, parameters) this will now raise an error
Now instead an *instance* of the model class needs to be created:
Python
from pedinf.models import mtanh
model = mtanh() create an instance of the model class
fit = model.prediction(radius, parameters)
Other changes
- Renamed the `SpectralPedestalPosterior` class to `ThomsonProfilePosterior` as it better describes its function.
- Added a new profile model `exspline` which is is appropriate for fitting the profile from one edge into the core. It combines a chosen set of exponentiated b-splines to model the background profile with a logistic function to model the pedestal structure.