🔵 🔵 🔵


Primary

၊၊||၊|။

xspec.Model() ⚬|docu|1st|20251021191542-00-⌔

Model — PyXspec 2.1.5 documentation#xspec.Model

class xspec.Model(exprString, modName='', sourceNum=1, setPars=None)

Xspec model class.

Methods

  • init
  • call (the ’()’ operator)
  • energies
  • folded
  • setPars
  • show
  • showList
  • untie
  • values

Attributes (all are get-only)

  • expression
  • The model expression string, using full component names.
  • name
  • The model name, optional in Xspec. This is an empty string for un-named models.
  • Model includes an attribute of type Component for every Xspec component in the model. The attribute name is the same as the full name of the Xspec component (ie. m=Model(“po”) produces an m.powerlaw attribute).
  • componentNames
  • List of component name strings.
  • flux
  • A tuple containing the results of the most recent flux calculation for this model. The tuple values are: (value, errLow, errHigh (in ergs/cm^2), value, errLow, errHigh (in photons)). This will be filled in after an AllModels.calcFlux() call ONLY when no spectra are loaded. Otherwise results are stored in the Spectrum objects.
  • lumin
  • Same as flux but for luminosity calculations. The tuple values are: (value, errLow, errHigh (in 10^44 ergs/s), value, errLow, errHigh (in photons)).
  • nParameters
  • Number of parameters in Model object[int].
  • startParIndex
  • Global index of the first parameter in this Model object[int].

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •