Changeset 43018
- Timestamp:
- May 11, 2026, 3:21:02 PM (2 months ago)
- Location:
- branches/eam_branches/ipp-pstamp-20260421/psModules/src
- Files:
-
- 3 edited
-
config/pmConfig.c (modified) (1 diff)
-
imcombine/pmStack.c (modified) (1 diff)
-
objects/pmSourceFitModel.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/psModules/src/config/pmConfig.c
r42283 r43018 1971 1971 } 1972 1972 1973 // this function is similar to pmConfigConvertFilename, but that function requires the ipprc to have 1974 // already been read (since it translates path: entries) 1975 // XXX EAM : merge duplicate code here 1973 1976 static psString resolveConfigFile(const char *nameArg) 1974 1977 { 1978 // strip file:// from front of name 1979 if (!strncasecmp(nameArg, "file:", strlen("file:"))) { 1980 psString newName = psStringCopy(nameArg); 1981 1982 char *point = newName + strlen("file:"); 1983 while (*point == '/') { 1984 point ++; 1985 } 1986 char *tmpName = NULL; 1987 psStringAppend (&tmpName, "/%s", point); 1988 psFree (newName); 1989 newName = tmpName; 1990 1991 if (!checkPath(newName, false, false)) { 1992 // let checkPath()'s psError() call float up 1993 psError(psErrorCodeLast(), false, "error from checkPath for file:// (%s)", newName); 1994 psFree (newName); 1995 return NULL; 1996 } 1997 return newName; 1998 } 1999 1975 2000 // if config file name is nebulous path resolve it 1976 2001 // otherwise just return a copy of the argument -
branches/eam_branches/ipp-pstamp-20260421/psModules/src/imcombine/pmStack.c
r42830 r43018 1997 1997 psFree(pixelMap); 1998 1998 psFree(weights); 1999 psFree(exps); 1999 2000 psFree(buffer); 2000 2001 psFree(addVariance); -
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.
