Commit 0e2f0c0581e1546197ff9177568aefce4a118382
1 parent
ef19160d
Correct path to model XML file in example scripts
Showing
6 changed files
with
9 additions
and
9 deletions
examples/pipeline_binned_disk.py
| ... | ... | @@ -84,7 +84,7 @@ def setup_observations(pattern='four', ra=83.63, dec=22.01, offset=1.5, |
| 84 | 84 | # =========== # |
| 85 | 85 | # Setup model # |
| 86 | 86 | # =========== # |
| 87 | -def setup_model(obs, model='${CTOOLS}/share/models/crab.xml'): | |
| 87 | +def setup_model(obs, model='data/crab.xml'): | |
| 88 | 88 | """ |
| 89 | 89 | Setup model for analysis. |
| 90 | 90 | |
| ... | ... | @@ -113,7 +113,7 @@ def setup_model(obs, model='${CTOOLS}/share/models/crab.xml'): |
| 113 | 113 | def run_pipeline(obs, emin=0.1, emax=100.0, |
| 114 | 114 | enumbins=20, nxpix=200, nypix=200, binsz=0.02, |
| 115 | 115 | coordsys='CEL', proj='CAR', |
| 116 | - model='${CTOOLS}/share/models/crab.xml', | |
| 116 | + model='data/crab.xml', | |
| 117 | 117 | caldb='prod2', irf='South_0.5h', |
| 118 | 118 | debug=False): |
| 119 | 119 | """ | ... | ... |
examples/pipeline_binned_mem.py
| ... | ... | @@ -75,7 +75,7 @@ def setup_observations(pattern="four", ra=83.63, dec=22.01, offset=1.5, |
| 75 | 75 | # =========== # |
| 76 | 76 | # Setup model # |
| 77 | 77 | # =========== # |
| 78 | -def setup_model(obs, model="${CTOOLS}/share/models/crab.xml"): | |
| 78 | +def setup_model(obs, model='data/crab.xml'): | |
| 79 | 79 | """ |
| 80 | 80 | Setup model for analysis. |
| 81 | 81 | ... | ... |
examples/pipeline_stacked_disk.py
| ... | ... | @@ -75,7 +75,7 @@ def setup_observations(pattern="four", ra=83.63, dec=22.01, offset=1.5, |
| 75 | 75 | # =========== # |
| 76 | 76 | # Setup model # |
| 77 | 77 | # =========== # |
| 78 | -def setup_model(obs, model="${CTOOLS}/share/models/crab.xml"): | |
| 78 | +def setup_model(obs, model="data/crab.xml"): | |
| 79 | 79 | """ |
| 80 | 80 | Setup model for analysis. |
| 81 | 81 | |
| ... | ... | @@ -95,7 +95,7 @@ def setup_model(obs, model="${CTOOLS}/share/models/crab.xml"): |
| 95 | 95 | def run_pipeline(obs, ra=83.63, dec=22.01, emin=0.1, emax=100.0, |
| 96 | 96 | enumbins=20, nxpix=200, nypix=200, binsz=0.02, |
| 97 | 97 | coordsys="CEL", proj="CAR", |
| 98 | - model="${CTOOLS}/share/models/crab.xml", | |
| 98 | + model="data/crab.xml", | |
| 99 | 99 | caldb="prod2", irf="South_50h", |
| 100 | 100 | debug=False): |
| 101 | 101 | """ | ... | ... |
examples/pipeline_stacked_mem.py
| ... | ... | @@ -75,7 +75,7 @@ def setup_observations(pattern="four", ra=83.63, dec=22.01, offset=1.5, |
| 75 | 75 | # =========== # |
| 76 | 76 | # Setup model # |
| 77 | 77 | # =========== # |
| 78 | -def setup_model(obs, model="${CTOOLS}/share/models/crab.xml"): | |
| 78 | +def setup_model(obs, model="data/crab.xml"): | |
| 79 | 79 | """ |
| 80 | 80 | Setup model for analysis. |
| 81 | 81 | ... | ... |
examples/pipeline_unbinned_disk.py
| ... | ... | @@ -75,7 +75,7 @@ def setup_observations(pattern="four", ra=83.63, dec=22.01, offset=1.5, |
| 75 | 75 | # =========== # |
| 76 | 76 | # Setup model # |
| 77 | 77 | # =========== # |
| 78 | -def setup_model(obs, model="${CTOOLS}/share/models/crab.xml"): | |
| 78 | +def setup_model(obs, model="data/crab.xml"): | |
| 79 | 79 | """ |
| 80 | 80 | Setup model for analysis. |
| 81 | 81 | |
| ... | ... | @@ -95,7 +95,7 @@ def setup_model(obs, model="${CTOOLS}/share/models/crab.xml"): |
| 95 | 95 | def run_pipeline(obs, ra=83.63, dec=22.01, rad=3.0, |
| 96 | 96 | emin=0.1, emax=100.0, |
| 97 | 97 | tmin=0.0, tmax=0.0, |
| 98 | - model="${CTOOLS}/share/models/crab.xml", | |
| 98 | + model="data/crab.xml", | |
| 99 | 99 | caldb="prod2", irf="South_50h", |
| 100 | 100 | debug=False): |
| 101 | 101 | """ | ... | ... |
examples/pipeline_unbinned_mem.py
| ... | ... | @@ -75,7 +75,7 @@ def setup_observations(pattern="four", ra=83.63, dec=22.01, offset=1.5, |
| 75 | 75 | # =========== # |
| 76 | 76 | # Setup model # |
| 77 | 77 | # =========== # |
| 78 | -def setup_model(obs, model="${CTOOLS}/share/models/crab.xml"): | |
| 78 | +def setup_model(obs, model="data/crab.xml"): | |
| 79 | 79 | """ |
| 80 | 80 | Setup model for analysis. |
| 81 | 81 | ... | ... |