mirror of
https://github.com/triqs/dft_tools
synced 2024-12-21 11:53:41 +01:00
[transp] Check if case.outputs was converted
The wien2kconverter reads case.outputs only if present. Thus the transport code has to check if the necessary data is in the dft_misc_input subgroup.
This commit is contained in:
parent
058e8e968f
commit
7fe5f0222c
@ -611,6 +611,9 @@ class SumkDFTTools(SumkDFT):
|
||||
if mpi.is_master_node():
|
||||
ar = HDFArchive(self.hdf_file, 'r')
|
||||
if not (self.transp_data in ar): raise IOError, "transport_distribution: No %s subgroup in hdf file found! Call convert_transp_input first." %self.transp_data
|
||||
# check if outputs file was converted
|
||||
if not ('n_symmetries' in ar['dft_misc_input']): raise IOError, "transport_distribution: n_symmetries missing. Check if case.outputs file is present and call convert_misc_input() or convert_dft_input()."
|
||||
|
||||
self.read_transport_input_from_hdf()
|
||||
|
||||
if mpi.is_master_node():
|
||||
|
Loading…
Reference in New Issue
Block a user