Skip to content

pytomoatt.para

This content is for v0.3.0. Switch to the latest version for up-to-date documentation.

Class for read and write parameter file with yaml format

Constructor

__init__(fname: str)

Parameters

Name Type Description
fname str Path to parameter file
ATTPara.init_axis()

ATTPara.update_param(key: str, value)

Update a parameter in the YAML file.

Parameters

Name Type Description
key str The key of parameter file to be set. Use ‘.’ to separate the keys.

ATTPara.write(fname=None)

write

Parameters

Name Type Description
fname (str, optional) Path to output file, for None to overwrite input file, defaults to None (default: None)