Commit 830c3f8b7fa991891cadd1e01e8034ca3cf9a1ab

Authored by Jürgen Knödlseder
1 parent c5beaae6

Remove cast_GSkyModel.

Showing 1 changed file with 2 additions and 2 deletions
scripts/cssens.py
... ... @@ -553,8 +553,8 @@ class cssens(GApplication):
553 553 # Get fitted Crab, photon and energy fluxes
554 554 cflux = result_all["Test"]['Prefactor'].value()
555 555 cflux_err = result_all["Test"]['Prefactor'].error()
556   - pflux = cast_GModelSky(result_all["Test"]).spectral().flux(emin, emax)
557   - eflux = cast_GModelSky(result_all["Test"]).spectral().eflux(emin, emax)
  556 + pflux = result_all["Test"].spectral().flux(emin, emax)
  557 + eflux = result_all["Test"].spectral().eflux(emin, emax)
558 558  
559 559 # Compute differential sensitivity
560 560 diffSens = pflux / erg_width * erg_mean*erg_mean
... ...