cta-observatory / pyirf

Python IRF builder
https://pyirf.readthedocs.io/en/stable/
MIT License
15 stars 25 forks source link

Have ComponentEstimators sort input in increasing order for 1D-grids #245

Closed RuneDominik closed 1 year ago

RuneDominik commented 1 year ago

At the moment some classes like ParametrizedNearestSimplexExtrapolator require that the grid_points and the corresponding IRF-contents are sorted in increasing order with respect to grid_points. This was however not enforced, only stated in the docstring. As this can easily be changed, this PR introduces the sorting on the level of the ComponentEstimator base-classes.