paramget

tayph.paramget(keyword, dp, full_path=False, force_string=False)[source] [edit on github]

This code queries a planet system parameter from a config file located in the folder specified by the path dp; or run configuration parameters from a file speciefied by the full path dp, if full_path is set to True.

Parameters
keywordstr

A keyword present in the cofig file.

dpstr, Path

Output filename/path.

full_path: bool

If set, dp refers to the actual file, not the location of a folder with a config.dat; but the actual file itself.

Returns
valueint, float, bool, str

The value corresponding to the requested keyword.