Skip to content

Commit

Permalink
additional parameters in kkr_imp wf output node + fix issue #13
Browse files Browse the repository at this point in the history
  • Loading branch information
fBert31 committed Nov 29, 2018
1 parent 8c67fba commit 38355ff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions aiida_kkr/workflows/kkr_imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from aiida.orm import Code, DataFactory, load_node
from aiida.work.workchain import WorkChain, ToContext, if_
from aiida.work.workfunctions import workfunction as wf
from aiida_kkr.calculations.voro import VoronoiCalculation
from masci_tools.io.kkr_params import kkrparams
from aiida_kkr.tools.common_workfunctions import test_and_get_codenode, neworder_potential_wf
Expand Down Expand Up @@ -512,10 +513,10 @@ def return_results(self):
outputnode_dict['gf_wc_success'] = self.ctx.gf_writeout.out.calculation_info.get_attr('successful')
else:
outputnode_dict['used_subworkflows'] = {'auxiliary_voronoi': self.ctx.last_voro_calc.pk, 'kkr_imp_sub': self.ctx.kkrimp_scf_sub.pk}
outputnode_dict['successful'] = last_calc_info.get_attr('convergence_reached')
outputnode_dict['converged'] = last_calc_info.get_attr('convergence_reached')
outputnode_dict['number_of_rms_steps'] = len(last_calc_info.get_attr('convergence_values_all_steps'))
#outputnode_dict['convergence_values_all_steps'] = last_calc_info.get_attr('convergence_values_all_steps')
outputnode_dict['impurity_info'] = self.inputs.impurity_info
outputnode_dict['convergence_values_all_steps'] = last_calc_info.get_attr('convergence_values_all_steps')
outputnode_dict['impurity_info'] = self.inputs.impurity_info.get_attrs()
outputnode_dict['voro_wc_success'] = res_voro_info.get_attr('successful')
outputnode_dict['kkrimp_wc_success'] = last_calc_info.get_attr('successful')
outputnode_dict['last_calculation_pk'] = last_calc_pk
Expand All @@ -535,7 +536,7 @@ def return_results(self):
'|------------------------------------------------------------------------------------------------------------------|')


@wf
def change_struc_imp_aux_wf(struc, imp_info): # Note: works for single imp at center only!
from aiida.common.constants import elements as PeriodicTableElements
_atomic_numbers = {data['symbol']: num for num, data in PeriodicTableElements.iteritems()}
Expand Down

0 comments on commit 38355ff

Please sign in to comment.