3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 04:13:47 +01:00

Fix to update_archive script

This commit is contained in:
Priyanka Seth 2014-11-13 11:43:29 +01:00
parent 2f7b170e78
commit 948db7744f

View File

@ -30,7 +30,8 @@ move_to_output = ['gf_struct_solver','map_inv','map',
'chemical_potential','dc_imp','dc_energ','deg_shells',
'h_field']
for obj in move_to_output:
if (obj in A['lda_input'].keys()) and (not 'lda_output' in A): A.create_group('lda_output')
if obj in A['lda_input'].keys():
if not 'lda_output' in A: A.create_group('lda_output')
print "Moving %s to lda_output ..."%obj
A.copy('lda_input/'+obj,'lda_output/'+obj)
del(A['lda_input'][obj])