IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42294


Ignore:
Timestamp:
Oct 11, 2022, 3:17:57 PM (4 years ago)
Author:
eugene
Message:

handle a NULL pmDetEff returned from readout->analysis for some chips

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroLoadCrosstalk.c

    r41657 r42294  
    370370          //-----------------------------------------------------------------
    371371          //new style crostalk masking, with crosstalk rules from the recipes
    372           if(!crossCheck) {
     372          if (!crossCheck) {
    373373            // load ghost model metadata structure
    374374            psMetadata *crossModel = NULL;
     
    386386
    387387            pmDetEff *de = psMetadataLookupPtr(NULL, readout->analysis, PM_DETEFF_ANALYSIS); // Detection efficiency
     388            if (!de) continue; // chip has a problem if DETEFF is missing, just skip it
    388389            if (isnan(de->magRef)) { continue; }
    389390
    390             // find the CROSSTALK.RUKE this chip lands in (if any)
     391            // find the CROSSTALK.RULE this chip lands in (if any)
    391392            psListIterator *crossIter = psListIteratorAlloc(crossRules->data.list, PS_LIST_HEAD, false);
    392393            psMetadataItem *crossItem = NULL;
     
    528529                    //check again if the crosstalk is above the target chip background level
    529530                    pmDetEff *tarde = psMetadataLookupPtr(NULL, targetReadout->analysis, PM_DETEFF_ANALYSIS); // Detection efficiency
     531                    if (!tarde) continue;
    530532                    if (isnan(tarde->magRef)) { continue; }
    531533
     
    706708                    //check if the crosstalk is above the target chip background level
    707709                    pmDetEff *tarde = psMetadataLookupPtr(NULL, targetReadout->analysis, PM_DETEFF_ANALYSIS); // Detection efficiency
     710                    if (!tarde) continue;
    708711                    if (isnan(tarde->magRef)) { continue; }
    709712
Note: See TracChangeset for help on using the changeset viewer.