Dependency and version management.#
dependencies#
Simtools dependencies version management.
This modules provides two main functionalities:
retrieve the versions of simtools dependencies (e.g., databases, sim_telarray, CORSIKA)
provide space for future implementations of version management
- dependencies.get_build_options(run_time=None)[source]#
Return CORSIKA / sim_telarray build options.
Expects a build_opts.yml file in the sim_telarray directory.
- Parameters:
- run_timelist, optional
Runtime environment command (e.g., Docker).
- Returns:
- dict
Build options from build_opts.yml file.
- dependencies.get_corsika_version(run_time=None)[source]#
Get the version of the CORSIKA package.
- Parameters:
- run_timelist, optional
Runtime environment command (e.g., Docker).
- Returns:
- str
Version of the CORSIKA package.
- dependencies.get_database_version(db_config)[source]#
Get the version of the simulation model data base used.
- Parameters:
- db_configdict
Dictionary containing the database configuration.
- Returns:
- str
Version of the simulation model data base used.
- dependencies.get_sim_telarray_version(run_time)[source]#
Get the version of the sim_telarray package using ‘sim_telarray –version’.
- Parameters:
- run_timelist, optional
Runtime environment command (e.g., Docker).
- Returns:
- str
Version of the sim_telarray package.
- dependencies.get_version_string(db_config=None, run_time=None)[source]#
Print the versions of the dependencies.
- Parameters:
- db_configdict, optional
Database configuration dictionary.
- run_timelist, optional
Runtime environment command (e.g., Docker).
- Returns:
- str
String containing the versions of the dependencies.
version#
Software version setting.