settings#
Setup functionality for SkySim. Includes both methods for parsing a
configuration TOML, and converting that data in Settings (and friends)
objects.
Constants#
How far light from an object should spread. |
|
Calculate the spread of light from an object out to this many standard deviations. |
Type Aliases#
Type alias. |
|
Type alias. |
|
Type alias. |
|
Type alias. |
Classes#
Functions#
High-Level Functions#
|
Load configuration options from a TOML file and parse them into |
Low-Level Functions#
|
Read the configuration file and combine it with the default configuration to get dictionaries of values which can be used for the various |
|
Convert a string of the form 'a.b.c' into a list of the form ['a','b','c']. |
|
Access a value from an arbitrarily nested dictionary via a list of keys. |
|
Check if a key exists within a nested dictionary. |
|
Validate the existence of the required keys in the TOML configuration. |
|
Convert a dictionary of the form {degrees:X, arcminutes:Y, arcseconds:Z} to a single Quantity. |
|
Converts a |
|
Access a config value from the TOML config provided, and if not present, search the provded default config. |
|
Convert a astropy angle to a pretty-printed string. |