https://github.com/romerogroup/pyprocar
Raw File
Tip revision: 2a713486e354a854047dbadf78a0013d5edea9a6 authored by uthpalah on 21 July 2019, 19:14:23 UTC
Bug fixes in k-mesh generator
Tip revision: 2a71348
scriptCat.py
from .utilsprocar import UtilsProcar



def cat(inFiles,outFile,gz=False):
    print("Concatenating:")
    print("Input         : ", inFiles)    # ', '.join(inFiles)
    print("Output        : ", outFile)
    if gz==True:
        print("out compressed: True")
    
    if gz=="True" and outFile[-3:] is not '.gz':
      outFile += '.gz'
      print(".gz extension appended to the outFile")
    
    handler = UtilsProcar()
    handler.MergeFiles(inFiles,outFile, gzipOut=gz)
    return
back to top