Commit 3807b28f498aeba624b11d55366a5ec853a6f8f8

Authored by Jürgen Knödlseder
1 parent 9a31a268

Fix TS computation for BINS method

Showing 1 changed file with 1 additions and 1 deletions
cscripts/csspec.py
... ... @@ -1000,7 +1000,7 @@ class csspec(ctools.csobservation):
1000 1000  
1001 1001 # Set intensity of node to tiny value by scaling the value
1002 1002 # by a factor 1e-8.
1003   - par = obs.models()[self['srcname'].string()].spectral()[i*2+1]
  1003 + par = obs.models()[self['srcname'].string()].spectral()[parname]
1004 1004 par.autoscale()
1005 1005 par.factor_min(1.0e-8)
1006 1006 par.factor_value(1.0e-8)
... ...