#!/usr/bin/env python import logging import os,sys sys.path.append("/Users/chapman/data1/Applications/hawcdrp/pipeline/src") drp = __import__("drp") from drp.pipeline import PipeLine conf = 'pipeconf_sharp.txt' logfile = 'sharp.log' if os.path.exists(logfile): os.remove(logfile) logging.basicConfig(level=logging.DEBUG,filename=logfile) files = ['sharc2-048485.raw.fits','sharc2-048486.raw.fits', 'sharc2-048487.raw.fits','sharc2-048488.raw.fits','sharc2-048489.raw.fits'] pipe = PipeLine(filenames=files,config=conf,instmode='sharp') pipe.addfiles(files) result = pipe()