mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 12:23:41 +01:00
Fix to update_archive script
This commit is contained in:
parent
2f7b170e78
commit
948db7744f
@ -30,10 +30,11 @@ move_to_output = ['gf_struct_solver','map_inv','map',
|
|||||||
'chemical_potential','dc_imp','dc_energ','deg_shells',
|
'chemical_potential','dc_imp','dc_energ','deg_shells',
|
||||||
'h_field']
|
'h_field']
|
||||||
for obj in move_to_output:
|
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():
|
||||||
print "Moving %s to lda_output ..."%obj
|
if not 'lda_output' in A: A.create_group('lda_output')
|
||||||
A.copy('lda_input/'+obj,'lda_output/'+obj)
|
print "Moving %s to lda_output ..."%obj
|
||||||
del(A['lda_input'][obj])
|
A.copy('lda_input/'+obj,'lda_output/'+obj)
|
||||||
|
del(A['lda_input'][obj])
|
||||||
|
|
||||||
A.close()
|
A.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user