INNER CODE UNIT · Python
printq
SMTG-Bham/ThermoParser · tp/cli/cli.py:358
printq = printq[:-1]
print('The {}'.format(printq), end=' ')
end = ' '
if 'band' in dims:
print('of the {}{} band in AMSET'.format(band, suffix), end=end)
if 'kpoint' in dims:
k = data['kpoint'][ki]
print('at ({:.3f}, {:.3f}, {:.3f})'.format(k[0], k[1], k[2]), end=end)
if 3 in dims:
print('in the {} direction'.format(direction), end=end)
dims.remove(3)
if 3 in dims:
dims.remove(3)
if 'stype' in dims:
print('due to {} scattering'.format(scattering), end=end)
dims.remove('stype')
if 'temperature' in dims: