From a8577c159ff4bb5e9a85481b2903551ac33da134 Mon Sep 17 00:00:00 2001 From: Hubert Siejkowski Date: Thu, 10 Jul 2014 16:26:38 +0200 Subject: [PATCH] Fix the exmaples to use good locations of xml models and calibration --- examples/make_binned_analysis.py | 8 ++++---- examples/make_pull_at_sensitivity_limit.py | 2 +- examples/make_ts_distributions.py | 4 ++-- examples/make_unbinned_analysis.py | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/make_binned_analysis.py b/examples/make_binned_analysis.py index 0bc744f..86cacad 100755 --- a/examples/make_binned_analysis.py +++ b/examples/make_binned_analysis.py @@ -46,11 +46,11 @@ def pipeline_v1(): in a ftools-like approach. """ # Set script parameters - model_name = "${GAMMALIB}/share/models/crab.xml" + model_name = "${CTOOLS}/share/models/crab.xml" events_name = "events.fits" cntmap_name = "cntmap.fits" result_name = "results.xml" - caldb = "${GAMMALIB}/share/caldb/cta" + caldb = "${CALDB}/data/cta/dummy/bcf" irf = "cta_dummy_irf" ra = 83.63 dec = 22.01 @@ -151,8 +151,8 @@ def pipeline_v2(): At the end, results are plotted (if matplotlib is installed) """ # Set script parameters - model_name = "${GAMMALIB}/share/models/crab.xml" - caldb = "${GAMMALIB}/share/caldb/cta" + model_name = "${CTOOLS}/share/models/crab.xml" + caldb = "${CALDB}/data/cta/dummy/bcf" irf = "cta_dummy_irf" ra = 83.63 dec = 22.01 diff --git a/examples/make_pull_at_sensitivity_limit.py b/examples/make_pull_at_sensitivity_limit.py index f7e99e0..e058379 100755 --- a/examples/make_pull_at_sensitivity_limit.py +++ b/examples/make_pull_at_sensitivity_limit.py @@ -61,7 +61,7 @@ def create_pull(loge, emin, emax, models, ntrials=100, duration=180000.0, \ pull.models(models) pull["outfile"] = outfile pull["ntrials"] = ntrials - pull["caldb"] = "$GAMMALIB/share/caldb/cta" + pull["caldb"] = "${CALDB}/data/cta/dummy/bcf" pull["irf"] = "cta_dummy_irf" pull["ra"] = 83.6331 pull["dec"] = 22.0145 diff --git a/examples/make_ts_distributions.py b/examples/make_ts_distributions.py index 546356c..3360a2a 100755 --- a/examples/make_ts_distributions.py +++ b/examples/make_ts_distributions.py @@ -65,12 +65,12 @@ def create_ts(loge, emin, emax, ntrials=100, duration=180000.0, \ tsdist = cstsdist() tsdist["outfile"] = outfile tsdist["ntrials"] = ntrials - tsdist["caldb"] = "$GAMMALIB/share/caldb/cta" + tsdist["caldb"] = "${CALDB}/data/cta/dummy/bcf" tsdist["irf"] = "cta_dummy_irf" tsdist["type"] = "point" tsdist["index"] = -2.48 tsdist["offset"] = 0.0 - tsdist["bkg"] = "$GAMMALIB/share/models/bkg_dummy.txt" + tsdist["bkg"] = "${CTOOLS}/share/models/bkg_dummy.txt" tsdist["emin"] = float(emin) tsdist["emax"] = float(emax) tsdist["enumbins"] = int(enumbins) diff --git a/examples/make_unbinned_analysis.py b/examples/make_unbinned_analysis.py index 8d26f1e..ea723f7 100755 --- a/examples/make_unbinned_analysis.py +++ b/examples/make_unbinned_analysis.py @@ -49,11 +49,11 @@ def pipeline_v1(): in a ftools-like approach. """ # Set script parameters - model_name = "${GAMMALIB}/share/models/crab.xml" + model_name = "${CTOOLS}/share/models/crab.xml" events_name = "events.fits" selected_events_name = "selected_events.fits" result_name = "results.xml" - caldb = "${GAMMALIB}/share/caldb/cta" + caldb = "${CALDB}/data/cta/dummy/bcf" irf = "cta_dummy_irf" ra = 83.63 dec = 22.01 @@ -143,8 +143,8 @@ def pipeline_v2(show_data): FITS files on disk. All data is only hold in memory. """ # Set script parameters - model_name = "${GAMMALIB}/share/models/crab.xml" - caldb = "${GAMMALIB}/share/caldb/cta" + model_name = "${CTOOLS}/share/models/crab.xml" + caldb = "${CALDB}/data/cta/dummy/bcf" irf = "cta_dummy_irf" ra = 83.63 dec = 22.01 -- libgit2 0.21.4