INNER CODE UNIT · Python

get_boltztrap

SMTG-Bham/ThermoParser · tp/cli/cli.py:469

def get_boltztrap(boltztrap_hdf5, quantity, dtype, doping, direction, temperature):
    """Prints BoltzTraP values at given conditions.

    Requires a tp boltztrap.hdf5 file.
    """
    # I'm making a few of these for different inputs so it doesn't get
    # too unwieldly checking which source they're from, but they could
    # also be combined.

    data = tp.data.load.boltztrap(boltztrap_hdf5, quantity, doping=dtype)

    dims = data['meta']['dimensions'][quantity]
    if 'temperature' not in dims:
        temperature = None
    if 'doping' not in dims:
        doping = None

    data = tp.data.utilities.resolve(data, quantity, direction=direction,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…