IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14047


Ignore:
Timestamp:
Jul 6, 2007, 3:38:26 PM (19 years ago)
Author:
jhoblitt
Message:

fix dettool -rerun mode to handle 'exp_id' being an int instead of a string

File:
1 edited

Legend:

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

    r14046 r14047  
    62166216    // build a hash for the valid exp_ids
    62176217    psHash *valid_exp_ids = psHashAlloc(psArrayLength(detrendExps));
    6218 // XXX: FIXME!
    6219 #if 0
    62206218    for (long i = 0; i < psArrayLength(detrendExps); i++) {
    6221         psHashAdd(valid_exp_ids,
    6222             ((detInputExpRow *)detrendExps->data[i])->exp_id,
    6223             detrendExps->data[i]
    6224         );
    6225     }
    6226 #endif
     6219        psString exp_idStr = psDBIntToString(((detInputExpRow *)detrendExps->data[i])->exp_id);
     6220        psHashAdd(valid_exp_ids, exp_idStr, detrendExps->data[i]);
     6221        psFree(exp_idStr);
     6222    }
    62276223    psFree(detrendExps);
    62286224
Note: See TracChangeset for help on using the changeset viewer.