Version 1.0.1 Dec 2012 [XSPEC 12.8.0]
- 2 additions to the Spectrum class: an ignored attribute and an ignoredString() function. The former returns a Python list object containing every ignored channel number. The latter returns the same information in convenient string form, which can be reused as input to a future ignore or notice command.
Version 1.0 Feb 2012 [XSPEC 12.7.1]
Changes relative to the PyXspec Beta version:
*** Important: Two Backwards-Incompatible Changes ***
- When using multiple data groups, the Model objects assigned to the higher-numbered groups now all have their parameters indexed from 1 to nPar. For example with a 3 parameter model applied to 2 data groups, you would now access the first parameter in the 2nd model object with "mod2(1)" rather than "mod2(4)".
- The Model.setPars() function (introduced with patch 12.7.0f) used the pn keyword argument syntax to set non-consecutive parameters. This has been replaced. with the use of Python dictionaries. For example, m.setPars(p2=.3, p4=1.1) should now be m.setPars({2:.3, 4:1.1}).
New Features
- Added Standard XSPEC's gain command functionality. This is implemented with the new gain attribute for Response classes. Response.gain is a class of type RModel, and has two Parameter objects: slope and intercept.
- New AllModels.setPars() function for changing multiple parameters in multiple Model objects with a single call.
- Now compatible with Cygwin.
Features Previously Added As Patches To XSPEC 12.7.0
- AllModels.initpackage() for building local models inside the Python shell.
- Bayesian inference provided through the Fit.bayes and Parameter.prior attributes.
- Fit.goodness() and Fit.improve() functions.
- Model.setPars() function for changing multiple parameters with a single call.
- AllModels.simpars() function to do the equivalent of Standard XSPEC's tclout simpars.
- Fit.covariance attribute for retrieving the covariance matrix from the most recent fit.
- Model.expression attribute which stores the model expression string.
- AllModels.sources attribute which stores a map of source number and model name assignments.
Fixes
- All PyXspec bug fixes previously released as patches to XSPEC 12.7.0 are included.
- Now handles model component-by-name access when the component is a table model whose name includes whitespace.