Pedestal-inference

Latest version: v0.3.0

Safety actively analyzes 623106 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.0

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.

0.2.3

- Optimised the `SpectrometerModel.spectrum` function.
- Added analytic calculation of the Jacobian of the `SpectrometerModel` predictions to allow for gradient-based optimisation of the log-posterior.

0.2.2

- Fixed a bug where `SpectrumData` would not properly sanitise it's input data if all the data were `NaN`.
- Added the ability to pass a prior function to `SpectralPedestalPosterior`

0.2.1

- Fixed a bug in `SpectrometerModel` which caused a crash when accessing the shape of the spectral response data array.

0.2.0

- Refactored the `SpectrometerModel` class, and made management of input data easier by introducing dedicated data structure classes `InstrumentFunction` and `SpectralResponse`.

0.1.0

- Initial release to coincide with [publishing the package to PyPI](https://pypi.org/project/pedestal-inference/)

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.