示例#1
0
 def sed(kind, **kwargs):
     print 'Making %s SED' % kind
     s = GtlikeSED(like,
                   name,
                   always_upper_limit=True,
                   verbosity=4,
                   upper_limit_kwargs=upper_limit_kwargs,
                   **kwargs)
     s.plot('%s/sed_gtlike_%s_%s.png' %
            (pipeline.dirdict['seds'], kind, name))
     s.save('%s/sed_gtlike_%s_%s.yaml' %
            (pipeline.dirdict['seds'], kind, name))
示例#2
0
 def sed(kind,**kwargs):
     try:
         print 'Making %s SED' % kind
         sed = GtlikeSED(like, name, always_upper_limit=True, 
                         verbosity=4, 
                         upper_limit_kwargs=upper_limit_kwargs,
                         **kwargs)
         sed.plot('%s/sed_gtlike_%s_%s.png' % (seddir,kind,name)) 
         sed.save('%s/sed_gtlike_%s_%s.yaml' % (seddir,kind,name))
     except Exception, ex:
         print 'ERROR computing SED:', ex
         traceback.print_exc(file=sys.stdout)
示例#3
0
 def sed(kind, **kwargs):
     print "Making %s SED" % kind
     s = GtlikeSED(like, name, always_upper_limit=True, verbosity=4, upper_limit_kwargs=upper_limit_kwargs, **kwargs)
     s.plot("%s/sed_gtlike_%s_%s.png" % (pipeline.dirdict["seds"], kind, name))
     s.save("%s/sed_gtlike_%s_%s.yaml" % (pipeline.dirdict["seds"], kind, name))