Sherpa
4.14.1

Introduction

  • Installation
  • A quick guide to modeling and fitting in Sherpa
  • Sherpa and CIAO

User Documentation

  • What data is to be fit?
  • Creating model instances
  • Evaluating a model
  • Available Models
  • What statistic is to be used?
  • Optimisers: How to improve the current parameter values
  • Fitting the data
  • Visualisation
  • Markov Chain Monte Carlo and Poisson data
  • Utility routines
    • Contolling the verbosity of Sherpa
    • Reference/API
      • The sherpa module
      • The sherpa.utils.err module
      • The sherpa.utils.logging module
      • The sherpa.utils module
        • Knuth_close
        • _guess_ampl_scale
        • apache_muller
        • bisection
        • bool_cast
        • calc_ftest
        • calc_mlr
        • calc_total_error
        • create_expr
        • dataspace1d
        • dataspace2d
        • demuller
        • erf
        • export_method
        • extract_kernel
        • filter_bins
        • gamma
        • get_error_estimates
        • get_fwhm
        • get_keyword_defaults
        • get_keyword_names
        • get_midpoint
        • get_num_args
        • get_peak
        • get_position
        • get_valley
        • guess_amplitude
        • guess_amplitude2d
        • guess_amplitude_at_ref
        • guess_bounds
        • guess_fwhm
        • guess_position
        • guess_radius
        • guess_reference
        • histogram1d
        • histogram2d
        • igam
        • igamc
        • incbet
        • interpolate
        • is_binary_file
        • lgam
        • linear_interp
        • multinormal_pdf
        • multit_pdf
        • nearest_interp
        • neville
        • neville2d
        • new_muller
        • normalize
        • numpy_convolve
        • pad_bounding_box
        • parallel_map
        • param_apply_limits
        • parse_expr
        • poisson_noise
        • print_fields
        • quantile
        • rebin
        • sao_arange
        • sao_fcmp
        • set_origin
        • sum_intervals
        • zeroin
        • NoNewAttributesAfterInit
      • The sherpa.utils.testing module
      • The sherpa.io module
      • The sherpa.astro module
      • The sherpa.astro.io module
      • The sherpa.astro.io.wcs module
      • The sherpa.astro.utils.xspec module

Worked Examples

  • Simple Interpolation
  • Comparing Gaussian, Lorentzian, and Voigt 1D models
  • Simple user model

An interactive application

  • Using Sessions to manage models and data

Notebooks

  • Sherpa Quick Start
  • Notebook support in Sherpa
  • A sample of plots

Extra Functionality

  • Optimizing functions

Getting Help

  • Bug Reports
  • Contributing to Sherpa development
  • Indices and tables
Sherpa
  • »
  • Utility routines »
  • The sherpa.utils module »
  • print_fields
  • Edit on GitHub

print_fields

sherpa.utils.print_fields(names, vals, converters=None)[source] [edit on github]

Given a list of strings names and mapping vals, where names is a subset of vals.keys(), return a listing of name/value pairs printed one per line in the format ‘<name> = <value>’. If a value is a NumPy array, print it in the format ‘<data type name>[<array size>]’. Otherwise, use str(value).

Previous Next

© Copyright 2019-2022, Chandra X-ray Center, Smithsonian Astrophysical Observatory.. Revision 0cd152fb. Last updated on 11 Oct 2022.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: 4.14.1
Versions
latest
4.15.0
4.14.1
4.14.0
4.13.1
4.13.0
4.12.2
4.12.1
4.12.0
4.11.1
4.11.0
4.10.2
4.10.1
Downloads
On Read the Docs
Project Home
Builds