예제 #1
0
파일: regions.py 프로젝트: mazalves/OrCS
    def combine(parser, group):
        """
        IMPORTANT NOTE:
        This is a local definition for the option which has more help
        information than the default defined in cmd_options.py.  This info is
        specific to this script and is not applicable to the other locations
        where the option is used.

        Default value for combine to 'none' instead of setting it to a value
        (as it is in cmd_options.py).  This allows the option to be used to
        determine what to do.

        @return  No return value
        """

        method = cmd_options.GetMethod(parser, group)
        method(
            "--combine",
            dest="combine",
            default=None,
            help=
            "Combine the vectors for BBV and LDV files into a single FV file, use scaling "
            "factor COMBINE (0.0 >= COMBINE <= 1.0).  The BB vectors "
            "are scaled by COMBINE, while the LD vectors are scaled by 1-COMBINE.  Default: 0.5  "
            "Assumes both files have already been transformed by the appropriate process "
            "(project/normal for BBV, weight/normal for LDV). "
            "Must use --normal_bbv and --normal_ldv to define files to process."
        )
예제 #2
0
def whole_sim(parser, group):
    method = cmd_options.GetMethod(parser, group)
    method('-W',
           '--whole_sim',
           dest="whole_sim",
           action="store_true",
           help="Run Sniper on the whole program pinballs.")
예제 #3
0
def region_sim(parser, group):
    method = cmd_options.GetMethod(parser, group)
    method('-T',
           '--region_sim',
           dest="region_sim",
           action="store_true",
           help="Run Sniper on the region pinballs.")
예제 #4
0
    def default_phases(self, parser, group):
        """
        For SDE CBSP, redefine the option '--default_phases' instead
        of using the one defined in cbsp.default_phases().

        @param parser Optparse object
        @param group Parser option group in which options are displayed

        @return No return value
        """

        method = cmd_options.GetMethod(parser, group)
        method(
            "--default_phases",
            dest="default_phases",
            action="store_true",
            help="Always run these default phases: log, cb_match, simpoint, "
            "region_pinball, lit_gen, region_sim, whole_sim and pred_error.")
예제 #5
0
파일: cbsp.py 프로젝트: mazalves/OrCS
    def default_phases(self, parser, group):
        """
        For Pin/PinPlay CBSP, redefine the option '--default_phases' instead
        of using the one defined in cmd_options.default_phases().

        @param parser Optparse object
        @param group Parser option group in which options are displayed

        @return No return value
        """

        method = cmd_options.GetMethod(parser, group)
        method(
            "--default_phases",
            dest="default_phases",
            action="store_true",
            help="Always run these default phases: log, cb_match, simpoint, and "
            "region_pinball. Additional phases are also run by default with SDE.")