Changeset 29937 for trunk/ppSub/src/ppSubReadoutPhotometry.c
- Timestamp:
- Dec 5, 2010, 9:45:46 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadoutPhotometry.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadoutPhotometry.c
r29003 r29937 31 31 32 32 if (!data->photometry) { 33 return true;34 }35 36 // Look up recipe values37 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim38 psAssert(recipe, "We checked this earlier, so it should be here.");39 40 if (!psMetadataLookupBool(NULL, recipe, "PHOTOMETRY")) {41 pmFPAfileDropInternal(config->files, "PSPHOT.BACKMDL");42 pmFPAfileDropInternal(config->files, "PSPHOT.BACKMDL.STDEV");43 33 return true; 44 34 } … … 81 71 } 82 72 83 if (!psphotReadoutMinimal(config, view )) {73 if (!psphotReadoutMinimal(config, view, "PSPHOT.INPUT")) { 84 74 // This is likely a data quality issue 85 75 // XXX Split into multiple cases using error codes? … … 90 80 91 81 // If no sources were found, there's no error, but we want to trigger 'bad quality' 82 psWarning("no sources found: why is this being set to bad quality??"); 92 83 pmDetections *detections = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.DETECTIONS"); // Sources 93 84 if (!detections) { … … 136 127 } 137 128 } 138 139 pmFPAfileDropInternal(config->files, "PSPHOT.BACKMDL");140 pmFPAfileDropInternal(config->files, "PSPHOT.BACKMDL.STDEV");141 129 142 130 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
