def Analysis(folder, config, tag="", convtyp='-1', verbose = 1): """ run an analysis""" Obs = Observation(folder, config, convtyp, tag=tag) if verbose: utils._log('SUMMARY: ' + tag) Obs.printSum() FitRunner = FitMaker(Obs, config)##Class if config['Spectrum']['FitsGeneration'] == 'yes': FitRunner.GenerateFits() #Generates fits files return FitRunner
def Analysis(folder, config, tag="", convtyp='-1', verbose = 1): """ run an analysis""" from gtfunction import Observation from fitfunction import MakeFit Obs = Observation(folder, config, convtyp, tag=tag) if verbose: _log('SUMMARY: ' + tag) Obs.printSum() runfit = MakeFit(Obs, config)##Class if config['Spectrum']['FitsGeneration'] == 'yes': runfit.PreparFit() #Generates fits files return runfit