IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33112


Ignore:
Timestamp:
Jan 17, 2012, 4:19:26 PM (14 years ago)
Author:
bills
Message:

when setting entire chip or warp runs to be updated set bad quality components to be full
so that the runs will finish

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r32653 r33112  
    20272027    psFree(setHook);
    20282028    psFree(query);
     2029    // if we are updating a whole chipRun set lingering chips with poor quality to full data_state
     2030    if (!class_id) {
     2031        query = "UPDATE chipProcessedImfile SET data_state ='full', fault = 0 WHERE chip_id = %" PRId64 " AND quality != 0 AND (data_state ='cleaned' OR data_state = 'update')";
     2032       
     2033        if (!p_psDBRunQueryF(config->dbh, query, chip_id)) {
     2034            psError(PS_ERR_UNKNOWN, false, "database error");
     2035            return false;
     2036        }
     2037    }
    20292038
    20302039    return true;
  • trunk/ippTools/src/warptool.c

    r32551 r33112  
    25812581    psFree(query);
    25822582
    2583     return true;
    2584 }
     2583    if (!skycell_id) {
     2584        // If we are updateing a whole warpRun set skycells with bad quality to 'full'
     2585        query = "UPDATE warpSkyfile SET data_state ='full', fault = 0 WHERE warp_id = %" PRId64 " AND quality != 0 AND (data_state != 'full')";
     2586        if (!p_psDBRunQueryF(config->dbh, query, warp_id)) {
     2587            psError(PS_ERR_UNKNOWN, false, "database error");
     2588            return false;
     2589        }
     2590    }
     2591
     2592    return true;
     2593}
Note: See TracChangeset for help on using the changeset viewer.