https://github.com/romerogroup/pyprocar
Tip revision: 81455769cc502ad52aea37685eeb7d01f6392de0 authored by uthpalah on 04 October 2019, 21:21:45 UTC
Fixed bug in 2D Kmesh generator
Fixed bug in 2D Kmesh generator
Tip revision: 8145576
scriptAbinitMerge.py
import re
import os
import glob
def mergeabinit(outfile):
#merge PROCAR files
filenames = sorted(glob.glob("PROCAR_*"))
with open(outfile, 'w') as outfile:
for fname in filenames:
with open(fname) as infile:
for line in infile:
outfile.write(line)