Changeset 28013 for trunk/psphot/src/psphotEfficiency.c
- Timestamp:
- May 18, 2010, 4:11:53 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotEfficiency.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:mergeinfo
set to
/branches/eam_branches/psphot.20100506 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/psphot/src/psphotEfficiency.c
r28006 r28013 156 156 } 157 157 158 bool psphotEfficiency (pmConfig *config, const pmFPAview *view )158 bool psphotEfficiency (pmConfig *config, const pmFPAview *view, const char *filerule) 159 159 { 160 160 bool status = true; … … 173 173 // loop over the available readouts 174 174 for (int i = 0; i < num; i++) { 175 if (i == chisqNum) continue; // skip chisq image176 if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) {177 psError (PSPHOT_ERR_CONFIG, false, "failed to measure detection efficiency for PSPHOT.INPUT entry %d", i);175 if (i == chisqNum) continue; // skip chisq image 176 if (!psphotEfficiencyReadout (config, view, filerule, i, recipe)) { 177 psError (PSPHOT_ERR_CONFIG, false, "failed to measure detection efficiency for %s entry %d", filerule, i); 178 178 return false; 179 179 } … … 183 183 184 184 // Determine detection efficiency 185 bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *file name, int index, psMetadata *recipe)185 bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe) 186 186 { 187 187 bool status = true; … … 190 190 191 191 // find the currently selected readout 192 pmFPAfile *file = pmFPAfileSelectSingle(config->files, file name, index); // File of interest192 pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, index); // File of interest 193 193 psAssert (file, "missing file?"); 194 194
Note:
See TracChangeset
for help on using the changeset viewer.
