Commit c4b6f93c1e3173a925bb344794a31573434288f4
1 parent
358726aa
bug fix in csresspec (#2448)
Showing
1 changed file
with
1 additions
and
1 deletions
cscripts/csresspec.py
| ... | ... | @@ -539,7 +539,7 @@ class csresspec(ctools.csobservation): |
| 539 | 539 | # Calculate Model and residuals. If model cube is provided load |
| 540 | 540 | # it |
| 541 | 541 | if self._use_maps: |
| 542 | - modcube = gammalib.GCTAEventCube(self['inmodel'].filename()) | |
| 542 | + modcube = gammalib.GCTAEventCube(self['modcube'].filename()) | |
| 543 | 543 | |
| 544 | 544 | # ... otherwise calculate it now |
| 545 | 545 | else: | ... | ... |