IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2007, 11:50:56 AM (18 years ago)
Author:
eugene
Message:

require CLASSID for detrend lookup, check for too many returned files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmDetrendDB.c

    r15562 r15812  
    253253    psStringAppend (&line, "detselect -select %s", detID);
    254254    if (classID && strlen(classID) > 0) {
    255         psStringAppend(&line, " -class_id %s", classID);
     255        psStringAppend(&line, " -class_id %s", classID);
    256256    }
    257257    pmConfigDatabaseCommand(&line, config);
     
    285285        goto failure;
    286286    }
     287    psMetadataItem *item = psMetadataLookup (answer, "detNormalizedImfile");
     288    if ((item->type == PS_DATA_METADATA_MULTI) && (item->data.list->n > 1)) {
     289        psError(PS_ERR_IO, false, "detselect returned too many files\n");
     290        goto failure;
     291    }
     292
    287293    psMetadata *md = psMetadataLookupPtr (NULL, answer, "detNormalizedImfile");
    288294    if (!md) {
Note: See TracChangeset for help on using the changeset viewer.