INNER CODE UNIT · Python
save_zt
SMTG-Bham/ThermoParser · tp/cli/cli.py:1017
def save_zt(transport_file, kappa, dtype, direction, interpolate, kind, output):
"""Extracts ZT from electronic transport data file.
Saves ZT to hdf5 and highlights to yaml, and prints max to stdout.
Currently accepts AMSET transport json or BoltzTraP hdf5, along with
Phono3py hdf5 for lattice thermal conductivity.
"""
tp.data.save.zt(transport_file, kappa, direction=direction, doping=dtype,
tinterp=interpolate, dinterp=interpolate, kind=kind,
output=output)
click.echo('{0}.yaml and {0}.hdf5 written'.format(output))
return
@tp_cli.group()