Exemplo n.º 1
0
 def calc(self, p, arf_source, exposure_time, min_energy, max_energy,
          specresp, model):
     (alpha, g0, psf_frac, num_regions, frame_time, fracexpo,
      max_num_terms) = p
     
     out = apply_pileup(arf_source, exposure_time, int(max_num_terms),
                        min_energy, max_energy, specresp, fracexpo,
                        frame_time, alpha, g0, num_regions, psf_frac, model)
     self._results = out[1:]
     return out[0]
Exemplo n.º 2
0
    def calc(self, p, arf_source, exposure_time, min_energy, max_energy,
             specresp, model):
        (alpha, g0, psf_frac, num_regions, frame_time, fracexpo,
         max_num_terms) = p

        out = apply_pileup(arf_source, exposure_time, int(max_num_terms),
                           min_energy, max_energy, specresp, fracexpo,
                           frame_time, alpha, g0, num_regions, psf_frac, model)
        self._results = out[1:]
        return out[0]