Changeset 43018 for branches/eam_branches/ipp-pstamp-20260421/psModules/src/objects/pmSourceFitModel.c
- Timestamp:
- May 11, 2026, 3:21:02 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/psModules/src/objects/pmSourceFitModel.c
r42843 r43018 74 74 } 75 75 76 static int nWarn = 0; 77 76 78 bool pmSourceFitModel (pmSource *source, 77 79 pmModel *model, … … 121 123 // skip nan values in image 122 124 if (!isfinite(source->pixels->data.F32[i][j])) { 123 fprintf (stderr, "WARNING: unmasked nan in image : %x vs %x\n", source->maskObj->data.PS_TYPE_IMAGE_MASK_DATA[i][j], maskVal); 125 if ((nWarn < 10) || (nWarn % 100 == 0)) { 126 fprintf (stderr, "WARNING (# %d): unmasked nan in image : %x vs %x\n", nWarn, source->maskObj->data.PS_TYPE_IMAGE_MASK_DATA[i][j], maskVal); 127 } 128 nWarn ++; 124 129 continue; 125 130 } … … 127 132 // skip nan values in image 128 133 if (!isfinite(vWgt[i][j])) { 129 fprintf (stderr, "WARNING: unmasked nan in variance : %x vs %x\n", source->maskObj->data.PS_TYPE_IMAGE_MASK_DATA[i][j], maskVal); 134 if ((nWarn < 10) || (nWarn % 100 == 0)) { 135 fprintf (stderr, "WARNING: unmasked nan in variance : %x vs %x\n", source->maskObj->data.PS_TYPE_IMAGE_MASK_DATA[i][j], maskVal); 136 } 137 nWarn ++; 130 138 continue; 131 139 }
Note:
See TracChangeset
for help on using the changeset viewer.
