read_configuration
- ctapointing.database.read_configuration(name, database, collection_name, read_from_file)
Read a configuration from either database or file.
- Parameters:
name (str) – name of the configuration (or filename)
database (str) – name of the database to read from
read_from_file (bool) – read from database if False, from file if True
collection_name (str) – mongo database collection to read from
- Returns:
configuration – (nested) dictionary of configuration parameters or None in case of unsuccessful reading
- Return type:
dict