3
0
mirror of https://github.com/triqs/dft_tools synced 2024-08-29 07:22:01 +02:00

Added dmft_output to clear_lda_output.py

This commit is contained in:
Priyanka Seth 2014-11-13 21:38:32 +01:00
parent 1e4b103ba7
commit 3b74a5c80a

View File

@ -3,7 +3,7 @@ import sys
import subprocess
if len(sys.argv) < 2:
print "Usage: python clear_lda_output.py archive"
print "Usage: python clear_h5_output.py archive"
sys.exit()
print """
@ -13,7 +13,8 @@ and to restore it to the original post-converter state.
filename = sys.argv[1]
A = h5py.File(filename)
del(A["lda_output"])
for group in ['lda_output','dmft_output']:
if group in A: del(A[group])
A.close()
# Repack to reclaim disk space