IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33989 for trunk/ippTools/src


Ignore:
Timestamp:
Jun 7, 2012, 11:42:36 AM (14 years ago)
Author:
heather
Message:

first crack at fixing staticksy/addstar filename problems. Need to test (best
as ippdvo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/addtool.c

    r33779 r33989  
    292292      // }
    293293    if (strcmp(stage,"staticsky") == 0) {
    294       psStringAppend(&query, " GROUP BY sky_id");  //some reason it needs this
     294      psStringAppend(&query, " GROUP BY sky_id, stack_id");  //some reason it needs this
    295295      }
    296296
     
    525525        psS64 stage_id =0;
    526526        bool status = false;
    527         psS32 num_inputs = psMetadataLookupS32(&status, md, "num_inputs");
     527        //psS32 num_inputs = psMetadataLookupS32(&status, md, "num_inputs");
     528        psS32 stack_id = psMetadataLookupS32(&status, md, "stack_id");
     529
    528530        if (!status) {
    529           psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item num_inputs");
     531          psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item stack_id");
    530532          return false;
    531533        }
     
    540542
    541543        // queue the exp
    542         for (int filter_id = 0; filter_id < num_inputs; filter_id++) { 
    543         if (!pxaddQueueByCamID(config,
     544        //for (int filter_id = 0; filter_id < num_inputs; filter_id++) { 
     545          if (!pxaddQueueByCamID(config,
    544546                               stage,
    545                                stage_id,
    546                                filter_id,
     547                               stage_id,
     548                               stack_id,
    547549                               workdir     ? workdir   : row->workdir,
    548550                               reduction   ? reduction : row->reduction,
     
    555557                               minidvodb_group,
    556558                               minidvodb_name
    557         )) {
     559                                )) {
    558560            if (!psDBRollback(config->dbh)) {
    559                 psError(PS_ERR_UNKNOWN, false, "database error sfg");
     561              psError(PS_ERR_UNKNOWN, false, "database error sfg");
    560562            }
    561563            psError(PS_ERR_UNKNOWN, false,
     
    564566            psFree(output);
    565567            return false;
    566         }
    567         }
     568          }
     569          //}
    568570        psFree(row);
    569571    }
Note: See TracChangeset for help on using the changeset viewer.