Commit 211b3d9519f2d18d302b9915378b3a0919de40f7

Authored by knodlseder
1 parent 0f78b133

do type conversion before parameter setting to make sure that the correct __seti…

…tem__ method gets called
examples/make_ts_distributions.py
@@ -71,10 +71,10 @@ def create_ts(loge, emin, emax, ntrials=100, duration=180000.0, \ @@ -71,10 +71,10 @@ def create_ts(loge, emin, emax, ntrials=100, duration=180000.0, \
71 tsdist["index"] = -2.48 71 tsdist["index"] = -2.48
72 tsdist["offset"] = 0.0 72 tsdist["offset"] = 0.0
73 tsdist["bkg"] = "$GAMMALIB/share/models/bkg_kb_E_50h_v3.txt" 73 tsdist["bkg"] = "$GAMMALIB/share/models/bkg_kb_E_50h_v3.txt"
74 - tsdist["emin"] = emin  
75 - tsdist["emax"] = emax  
76 - tsdist["enumbins"] = enumbins  
77 - tsdist["duration"] = duration 74 + tsdist["emin"] = float(emin)
  75 + tsdist["emax"] = float(emax)
  76 + tsdist["enumbins"] = int(enumbins)
  77 + tsdist["duration"] = float(duration)
78 tsdist["rad"] = 5.0 78 tsdist["rad"] = 5.0
79 tsdist["npix"] = 200 79 tsdist["npix"] = 200
80 tsdist["binsz"] = 0.05 80 tsdist["binsz"] = 0.05