Hello,
I encountered a bug in pipe_drivers when I was processing some Monocam data here at BNL. At line 796 in constructCalibs.py there is a command that begins with self.log.logdebug
that triggers the following error when I ran constructFlat.py to process some flats:
Traceback (most recent call last): File "/gpfs01/astro/workarea/jbrooks/lsst/pipe_drivers/python/lsst/pipe/drivers/constructCalibs.py", line 282, in __call__ result = task.run(**args) File "/gpfs01/astro/workarea/jbrooks/lsst/pipe_drivers/python/lsst/pipe/drivers/constructCalibs.py", line 356, in run scales = self.scale(ccdIdLists, data) File "/gpfs01/astro/workarea/jbrooks/lsst/pipe_drivers/python/lsst/pipe/drivers/constructCalibs.py", line 795, in scale self.log.logdebug("Iteration %d exposure scales: %s" % (iterate, numpy.exp(expScales))) File "/gpfs01/astro/workarea/stack/anaconda2/envs/lsst/opt/lsst/log/python/lsst/log/logLib.py", line 117, in <lambda> __getattr__ = lambda self, name: _swig_getattr(self, Log, name) File "/gpfs01/astro/workarea/stack/anaconda2/envs/lsst/opt/lsst/log/python/lsst/log/logLib.py", line 89, in _swig_getattr raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name)) AttributeError: 'Log' object has no attribute 'logdebug'
In an attempt to fix the problem I went in and changed self.log.logdebug
to self.log.debug
at lines 796 and 797 in constructCalibs.py (which seemed like a reasonable choice given the contents of log.py located in .../envs/lsst/opt/lsst/log/python/lsst/log
). Doing this allowed me to process my data with no errors, so I was wondering if this correction is okay?
I am using the 12.1 conda version of the DM stack and I am also using pipe_drivers 05687232830cd1e4c312a746f9d5f19cf7b22b59 from JIRA ticket DM-7742.
Thanks,
Jason