IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 18, 2008, 9:38:38 AM (18 years ago)
Author:
Paul Price
Message:

For the update system, can't change the type of what's on the recipe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackArguments.c

    r19399 r19599  
    8181    psMaskType value = pmConfigMaskGet(name, config); \
    8282    psMetadataAddU8(recipe, PS_LIST_TAIL, RECIPENAME, PS_META_REPLACE, NULL, value); \
    83 }
    84 
    85 // Get a statistic name from the command-line or recipe, and add the enum to the arguments
    86 #define VALUE_ARG_RECIPE_STAT(ARGNAME, RECIPENAME) { \
    87     const char *stat = psMetadataLookupStr(NULL, config->arguments, ARGNAME); \
    88     if (!stat) { \
    89         stat = psMetadataLookupStr(NULL, recipe, RECIPENAME); \
    90         if (!stat) { \
    91             psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find %s in recipe %s", \
    92                     RECIPENAME, PPSTACK_RECIPE); \
    93             goto ERROR; \
    94         } \
    95     } \
    96     psMetadataAddS32(recipe, PS_LIST_TAIL, RECIPENAME, PS_META_REPLACE, \
    97                      NULL, psStatsOptionFromString(stat)); \
    9883}
    9984
     
    281266    }
    282267    VALUE_ARG_RECIPE_INT("-renorm-width", "RENORM.WIDTH", S32, 0);
    283     VALUE_ARG_RECIPE_STAT("-renorm-mean", "RENORM.MEAN");
    284     VALUE_ARG_RECIPE_STAT("-renorm-stdev", "RENORM.STDEV");
     268    valueArgRecipeStr(arguments, recipe, "-renorm-mean", "RENORM.MEAN", recipe);
     269    valueArgRecipeStr(arguments, recipe, "-renorm-stdev", "RENORM.STDEV", recipe);
    285270
    286271    valueArgRecipeStr(arguments, recipe, "-temp-image",  "TEMP.IMAGE",  recipe);
Note: See TracChangeset for help on using the changeset viewer.