Changeset 23753 for trunk/ppSub/src/ppSubLoop.c
- Timestamp:
- Apr 8, 2009, 2:33:59 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubLoop.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubLoop.c
r23740 r23753 20 20 #include "ppSub.h" 21 21 22 bool ppSubLoop(p mConfig *config, ppSubData *data)22 bool ppSubLoop(ppSubData *data) 23 23 { 24 psAssert(data, "Require processing data"); 25 pmConfig *config = data->config; // Configuration 24 26 psAssert(config, "Require configuration."); 25 27 … … 45 47 } 46 48 47 if (!ppSubMatchPSFs( config,data)) {49 if (!ppSubMatchPSFs(data)) { 48 50 psError(PS_ERR_UNKNOWN, false, "Unable to match PSFs."); 49 51 return false; … … 74 76 } 75 77 76 if (!data->quality && !ppSubMakePSF( config,data)) {78 if (!data->quality && !ppSubMakePSF(data)) { 77 79 psError(PS_ERR_UNKNOWN, false, "Unable to generate PSF."); 78 80 return false; … … 101 103 } 102 104 103 if (!data->quality && !ppSubReadoutPhotometry("PPSUB.OUTPUT", config,data)) {105 if (!data->quality && !ppSubReadoutPhotometry("PPSUB.OUTPUT", data)) { 104 106 psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry."); 105 107 return false; … … 112 114 113 115 // Perform statistics on the cell 114 if (!ppSubReadoutStats( config,data)) {116 if (!ppSubReadoutStats(data)) { 115 117 psError(PS_ERR_UNKNOWN, false, "Unable to collect statistics"); 116 118 return false; … … 150 152 } 151 153 152 if (!data->quality && !ppSubReadoutPhotometry("PPSUB.INVERSE", config,data)) {154 if (!data->quality && !ppSubReadoutPhotometry("PPSUB.INVERSE", data)) { 153 155 psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry."); 154 156 return false; … … 168 170 } 169 171 170 psString dump_file = psMetadataLookupStr(NULL, config->arguments, "-dumpconfig");171 if (dump_file) {172 pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSUB.INPUT"); // Input file173 pmConfigDump(config, input->fpa, dump_file);174 }175 176 172 return true; 177 173 }
Note:
See TracChangeset
for help on using the changeset viewer.
