IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13603


Ignore:
Timestamp:
Jun 3, 2007, 4:19:51 PM (19 years ago)
Author:
eugene
Message:

adding SUMMARY container for non-psImageStats derived statistics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsSetupFromRecipe.c

    r13594 r13603  
    1313
    1414// Strings in a recipe may be defined multiply (with MULTI) or listed on a single line
    15 static void listFromRecipe(psMetadata *recipe, // Recipe to search
    16                            const char *name, // Name for item within recipe
    17                            psList *target // The target list
     15static void listFromRecipe(psList *target, // The target list
     16                           const psMetadata *recipe, // Recipe to search
     17                           const char *name // Name for item within recipe
    1818    )
    1919{
     
    8181    }
    8282
    83     listFromRecipe(recipe, "CHIP", data->chips);
    84     listFromRecipe(recipe, "CELL", data->cells);
    85     listFromRecipe(recipe, "HEADER", data->headers);
    86     listFromRecipe(recipe, "CONCEPT", data->concepts);
     83    listFromRecipe(data->chips,    recipe, "CHIP");
     84    listFromRecipe(data->cells,    recipe, "CELL");
     85    listFromRecipe(data->headers,  recipe, "HEADER");
     86    listFromRecipe(data->concepts, recipe, "CONCEPT");
     87
     88    // Parse SUMMARY statistics information
     89    listFromRecipe(data->summary, recipe, "SUMMARY");
    8790
    8891    // Parse the statistics options
    8992    psList *recipeStats = psListAlloc(NULL); // List of statistics options
    90     listFromRecipe(recipe, "STAT", recipeStats);
     93    listFromRecipe(recipeStats, recipe, "STAT");
     94
     95    // validate STATs choices
    9196    if (psListLength(recipeStats) > 0) {
    9297        psListIterator *iterator = psListIteratorAlloc(recipeStats, PS_LIST_HEAD, false);
Note: See TracChangeset for help on using the changeset viewer.