Sherpa

Latest version: v4.16.0

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

Scan your dependencies

Page 6 of 6

1.19

Compatibility updates for numpy v1.19 with regards to numpy.distutils and tostring deprecation

781 - Docs: fix typo in docstring for calc_kcorr
Fixed a typo in docstring for calc_kcorrFix a typo in the documentation
for calc_kcorr: change "0." to "0.5" in one of the examples.

759 - revert PR 444 (caching)
Revert the ARF cache added in 444, as well as some of the related code
changes, as they caused problems with Analysis in wavelength space
(e.g. 746)

756 - calculate_photon_flux/calculate_energy_flux fix and improvement
Bug fixes and improvements for calculate_photon_flux and calculate_energy_flux:
- address flux and flux-density calculation issues discussed (fix 619)
- fix documentation of the lo and hi arguments (fix 308)
- add model parameter to calc_photon/energy_flux which allows users to
easily calculate "unabsorbed" fluxes

747 - reworked regrid to eval usr grid, but 0 every where else
Modifies the 1D grid implementation to evaluate over the user-supplied
range, anything outside that is set to 0

745 - ensure that min/max limits are applied to linked parameters before use
Enforce parameter restrictions (they must lie within their min/max range)
even when the parameter is linked to another (which has a different range).

739 - Post 4.12.0 Updates
Update readme to include DOI for 4.12.0

0.28

Update the version of versioneer included in Sherpa from 0.21 to 0.28. Fix 1677.

1708 -Ensure string id can be used for the background id in the DataPHA notice/ignore call
Allow a string identifier to be used for the bkg_id argument to the
DataPHA.notice (and ignore) method, fixing 1709 (it does not affect users
using the ui layer).

1711 - plot: add linewidth option
Add the linewidth option for line and histogram plots (e.g. plot_data,
plot_model, plot_fit) with the matplotlib backend.

1715 - utils: rework the error-column saving code
Internal clean up of the save_*error routines. There is no change in behavior.

1716 - utils: tweak internal _save_type routine
Minor internal change to a routine in the utils code. There is no change in
behavior.

1720 - Fix get_stat_info output for individual components
Fix the get_stat_info output for multiple PHA data when the data has a different
number of background components (fix 1721). The get_bkg_model routine will now
use the source PHA for a response if the background has no response (to match
what fit and fit_bkg do, fix 1724).

1733 - Allow fake_pha to be called with a list of ARF/RMF names of length 1
Allow fake_pha to be called with a list of ARF and RMF names that only contains
one element. Fix 1722

1739 - pyfits: be more lenient with FITS files with messed-up headers
Allow some FITS files with an invalid header to be used with the AstroPy I/O
backend.

1747 - reduce chance of plot_pvalue getting stuck in a bad parameter space
Ensure that each simulation step for the likelihood ratios code, as used by
plot_pvalue, starts with the same parameter values to reduce the chance that the
results can get stuck in certain areas of parameter space. The ratios field of
the LikelihoodRatioResults structure - e.g. the return value of
get_pvalue_results() - can be plotted to see if this has happened (e.g. large
ranges where the ratio is close to zero.

1751 - Explicitly require attrs module when testing Sherpa
Ensure that the attrs module is available for testing Sherpa.

1752 - Drop Python 3.8 and Pick up Python 3.11 as a beta
move to be NEP-29 compliant with python version

1753 - Initial support for Python 3.11
Basic support of Python 3.11.

1755 - Tests: replace use of attrs package by dataclass
Change a test file to use data classes rather than use the attrs module, which
means that attrs is no-longer needed to test Sherpa. There is no functional
change in this PR.

1756 - Fix broken URL in docs
Updated URLS which are no longer valid

1759 - updated plot_pvalue docs
Updated docstring for plot_pvalue to include reference to the algorithm

1760 - Tweak test tolerances mac arm
Improve test reliance when running on the macOS ARM platform

Page 6 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.