IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32876


Ignore:
Timestamp:
Dec 7, 2011, 10:20:55 AM (15 years ago)
Author:
Serge CHASTEL
Message:

Code documentation

Location:
trunk/ippdor/src/ipp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdor/src/ipp/ChipManager.py

    r32874 r32876  
    226226            self.send_email('Chip stage failed for label %s / exposure %s)' % (self.label,
    227227                                                                               self.exposure_name),
    228                             body)
     228                            body % (GlobalConstants.LOCAL_TMP_DIR))
    229229            print 'EMail sent to [%s]' % self.recipient
    230230            raise IppException('Chip stage failed for label %s / exposure %s)' % (self.label, self.exposure_name))
  • trunk/ippdor/src/ipp/constants/Chip.py

    r32874 r32876  
    1010class Chip:
    1111    """
    12     This class is not intended to be used as a class instance.
     12    This class is not intended to be instantiated.
    1313    All its members are static.
    1414    """
     
    1818    REQUIREMENTS = 'LoadAvg < 0.3'
    1919    email_subject = ''
     20
     21    # This is the e-mail body which is sent when revert as
     22    # failed. Some values need to be replaced, namely:
     23    # - @COUNT_FAILED_CHIPS@: the number of chips which have failed;
     24    # - @LABEL@: the label;
     25    # - @EXPOSURE_NAME@: the exposure name;
     26    # - @LIST_PROCESSING_LOGS@: the list of log files that should be
     27    #   checked by the operator;
     28    # - @CHIPTOOL_UPDATEPROCESSEDIMFILE@: the list of commands that
     29    #   could be run to ignore some flaky OTAs
     30    # - @CHIPTOOL_REVERTPROCESSEDIMFILE@: the command that shoudl be
     31    #   run to revert the exposure.
     32    # It is also expected to valuate this expression with one argument:
     33    # - #1: The path to Globals.LOCAL_TMP_DIR
    2034    email_body_failed_revert = """Hi,
    2135
     
    3852
    3953Once you have FIXED ALL PROBLEMS FOR ALL EXPOSURES, on the host where the Condor task was submitted, submit the DAG (the host name is shown in the following line) again:
    40 condor_submit_dag -maxidle 1000 -maxjobs 500 %s/%s/ch2st.dag
     54condor_submit_dag -maxidle 1000 -maxjobs 500 %s/@LABEL@/ch2st.dag
    4155
    4256Thanks,
  • trunk/ippdor/src/ipp/constants/Globals.py

    r32874 r32876  
    11"""
    22This is the file in which all constants relative to the Condor-IPP
    3 framework are defined. It defines the following data members
     3framework are defined. It defines the following constants
    44(depending on the hostname value):
    55
    6 - LOCAL_TMP_DIR
    7 - NFS_TMP_DIR
    8 - IPP_BIN_PATH
    9 -
     6- IPPDOR_BINARY_PATH: the path to ippdor executables (they do not
     7  strictly have to be binaries)
     8- LOCAL_TMP_DIR: The local file system where some files can be
     9  stored. On the IPP production cluster, it is dependent on the host
     10  name.
     11- NFS_TMP_DIR: The NFS file system where some files are located.
     12- IPP_BIN_PATH: The path to the IPP executables. It is recommended to
     13  leave it to a fixed value (like current.lin64) and to relink
     14  current.lin64 to any new install.
    1015"""
    1116
     
    1520class Globals:
    1621    """
    17     This class is not intended to be used as a class instance.
    18     All its members are static.
     22    This class is not intended to be instantiated.
     23    All its members are static (and constant).
    1924    """
    2025    def __init__(self):
     26        """We don't want this class to be instantiated"""
    2127        raise UninstantiableIppException()
    2228
     
    3844    GENERATE_EXPOSURE_DAG = '%s/generate_exposure_dag.py %s %s %s' % (IPPDOR_BINARY_PATH, '%s', '%s', '%s')
    3945
     46    ###################
    4047    # IPP executables
     48    ###################
     49    # Chip stage
    4150    CHIPTOOL = '%s/chiptool -dbname gpc1' % IPP_BIN_PATH
    4251    CHIPIMFILE = '%s/chip_imfile.pl --dbname gpc1 --redirect-output --verbose --threads 1' % IPP_BIN_PATH
    4352
     53    # Cam stage
    4454    CAMTOOL = '%s/camtool' % IPP_BIN_PATH
    4555    CAMEXP = '%s/camera_exp.pl --dbname gpc1 --redirect-output --verbose' % IPP_BIN_PATH
    4656
     57    # Fake stage
    4758    FAKETOOL = '%s/faketool -dbname gpc1' % IPP_BIN_PATH
    4859    FAKE_IMFILE = '%s/fake_imfile.pl -dbname gpc1 --redirect-output --verbose'
    4960
     61    # Warp stage
    5062    WARPTOOL = '%s/warptool -dbname gpc1' % IPP_BIN_PATH
    5163    WARP_OVERLAP = '%s/warp_overlap.pl --dbname gpc1' % IPP_BIN_PATH
     
    5365    WARP_JPEG = '%s/skycell_jpeg.pl -dbname gpc1 -stage warp' % IPP_BIN_PATH
    5466
     67    # Stack stage
    5568    STACKTOOL = '%s/stacktool' % IPP_BIN_PATH
  • trunk/ippdor/src/ipp/constants/__init__.py

    r32874 r32876  
    11"""
    2 This module is the place where all constants are defined
     2This package is the package where constants are defined.
    33
    4 TODO: anything else?
     4- The Globals module defines constants which can be used anywhere. It
     5  is also the module where path to executables are defined;
     6
     7- The Chip module defines constants relative to the Chip stage (but
     8  the executables)
     9
     10- The Cam module defines constants relative to the Camera stage (but
     11  the executables)
     12
     13- The Fake module defines constants relative to the Fake stage (but
     14  the executables)
     15
     16- The Warp module defines constants relative to the Warp stage (but
     17  the executables)
     18
     19- The Stack module defines constants relative to the Stack stage (but
     20  the executables)
     21
    522"""
Note: See TracChangeset for help on using the changeset viewer.