pymls.utils package

Submodules

pymls.utils.hdf5_export module

pymls.utils.hdf5_export.hdf5_export(filename, S)[source]

Traverse the Solver S’s resultset and outputs in to a HDF5 file

pymls.utils.indicators module

pymls.utils.indicators.TL_from_T(T)[source]

Compute the Transmission Loss from the Transmission coefficient

pymls.utils.indicators.alpha_from_R(R)[source]

Compute the absorption coefficient from the Reflexion coefficient

pymls.utils.yaml_loader module

class pymls.utils.yaml_loader.YamlLoader[source]

Bases: object

Load a multilayer definition from a yaml file

Methods

extract_from_yaml  
from_file  
parse_yaml  
yaml_is_valid  
EXPECTED_FIELDS = {'analysis': {'type': [<class 'list'>, <class 'dict'>], 'item_keys': ['type', 'values', 'start', 'end', 'step']}, 'backing': {'type': [<class 'str'>]}, 'materials': {'type': [<class 'dict'>, <class 'dict'>], 'item_keys': ['source']}, 'multilayer': {'type': [<class 'list'>, <class 'dict'>], 'item_keys': ['medium', 'thickness']}}
KEYS_ANALYSIS = {'frequency': ['type', 'value'], 'range': ['type', 'start', 'end', 'step']}
MAP_BACKING = {'rigid': <function rigid at 0x7fe2ba182ae8>, 'transmission': <function transmission at 0x7fe2ba0fe9d8>}
extract_from_yaml(yaml=None)[source]
from_file(filename)[source]
parse_yaml()[source]
yaml_is_valid()[source]

Module contents