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).