Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added debug log message when reading a pfsConfig file.
  • Loading branch information
Hassan Siddiqui committed Nov 14, 2020
1 parent 427b0ba commit b25423b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/pfs/datamodel/pfsConfig.py
@@ -1,6 +1,7 @@
import numpy as np
import os
import enum
import lsst.log

try:
import astropy.io.fits as pyfits
Expand All @@ -10,6 +11,8 @@

__all__ = ("TargetType", "FiberStatus", "PfsDesign", "PfsConfig")

logger = lsst.log.Log.getLogger("pfs.datamodel.pfsConfig")


class DocEnum(enum.IntEnum):
"""An integer enumerated type with documented members
Expand Down Expand Up @@ -617,6 +620,7 @@ def read(cls, pfsDesignId, visit0, dirName="."):
Constructed `PfsConfig`.
"""
filename = os.path.join(dirName, cls.fileNameFormat % (pfsDesignId, visit0))
logger.debugf('Reading file {}', filename)
return cls._readImpl(filename, pfsDesignId=pfsDesignId, visit0=visit0)

def extractCenters(self, fiberId):
Expand Down

0 comments on commit b25423b

Please sign in to comment.