rubin_sim
  • Forum
  • Docs
  • LSST.org →

Navigation

  • next »
  • « previous |
  • rubin_sim »
  • print_dict

print_dict¶

rubin_sim.maf.utils.print_dict(content, label, filehandle=None, delimiter=' ', _level=0)¶

Print dictionaries (and/or nested dictionaries) nicely. Can also print other simpler items (such as numpy ndarray) nicely too. This is used to print the config files.

Parameters:
contentdict

The content to pretty print.

labelstr

A header for this level of the dictionary.

filenamefile

Output destination. If None, prints to stdout.

delimiterstr

User specified delimiter between fields.

_levelint

Internal use (controls level of indent).

On this page

  • print_dict
    • print_dict()

  Back to Top

Created using Sphinx 6.1.3. Page design is based on Astropy's bootstrap-astropy theme in astropy-helpers.
LSST documentation is proudly served through the Fastly CDN.

© Copyright 2015-2022 Association of Universities for Research in Astronomy, Inc. (AURA).

Financial support for LSST comes from the National Science Foundation (NSF) through Cooperative Agreement No. 1258333, the Department of Energy (DOE) Office of Science under Contract No. DE-AC02-76SF00515, and private funding raised by the LSST Corporation. The NSF-funded LSST Project Office for construction was established as an operating center under management of the Association of Universities for Research in Astronomy (AURA). The DOE-funded effort to build the LSST camera is managed by the SLAC National Accelerator Laboratory (SLAC).