pytomoatt.para
ATTPara
Section titled “ATTPara”Class for read and write parameter file with yaml format
Constructor
__init__(fname: str)Parameters
| Name | Type | Description |
|---|---|---|
fname |
str |
Path to parameter file |
Methods
Section titled “Methods”ATTPara.init_axis
Section titled “ATTPara.init_axis”ATTPara.init_axis()ATTPara.update_param
Section titled “ATTPara.update_param”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
Section titled “ATTPara.write”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) |

