mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
Added dmft_output to clear_lda_output.py
This commit is contained in:
parent
1e4b103ba7
commit
3b74a5c80a
@ -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
|
Loading…
Reference in New Issue
Block a user