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()[source]#

Return CORSIKA / sim_telarray build options.

Expects a build_opts.yml file in the sim_telarray directory.

dependencies.get_corsika_version()[source]#

Get the version of the corsika package.

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()[source]#

Get the version of the sim_telarray package using ‘sim_telarray –version’.

Returns:
str

Version of the sim_telarray package.

dependencies.get_version_string(db_config=None)[source]#

Print the versions of the dependencies.

version#

Software version setting.