Bug #1469
Constructor of some cscripts breaks from python if no argument is given
Status: | Closed | Start date: | 06/01/2015 | |
---|---|---|---|---|
Priority: | Immediate | Due date: | ||
Assigned To: | % Done: | 100% | ||
Category: | - | |||
Target version: | 1.0.0 | |||
Duration: |
Description
When running a cscript from within python, e.g.
The above code will throw an error due to the following line of code int the cscripts:
It has to be assured that
import csresmap resmap = csresmap.csresmap()
The above code will throw an error due to the following line of code int the cscripts:
if isinstance(argv[0],gammalib.GObservations): self.obs = argv[0] argv = argv[1:]
It has to be assured that
len(argv)>0
first! the following cscripts are affected:
- csresmap
- csspec
- cslightcrv
Recurrence
No recurrence.
History
#1
Updated by Mayer Michael almost 10 years ago
- Status changed from New to Pull request
- % Done changed from 0 to 100
fix available on 1469-fix-cscript-python-constructor
#2
Updated by Knödlseder Jürgen almost 10 years ago
- Status changed from Pull request to Closed
- Target version set to 1.0.0
Merged into devel
.