triggers_single_detector_HM.ensure_abspath#

Back to Module page

Summary#

Ensures that the path to fname is absolute, assumes it is saved in the same directory as config_fname!

Signature#

def ensure_abspath(config_fname, fname)
Input variables#

Name

Type

Default

Description

config_fname

Absolute path to config.json file

fname

Absolute or relative path to file

Output variables#

Return annotation

Docstring type

Description

None

Absolute path to fname

Docstring#

Ensures that the path to fname is absolute, assumes it is saved
in the same directory as config_fname!
:param config_fname: Absolute path to config.json file
:param fname: Absolute or relative path to file
:return: Absolute path to fname