IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16835


Ignore:
Timestamp:
Mar 5, 2008, 12:37:59 PM (18 years ago)
Author:
Paul Price
Message:

If there's errors in adding a source, it's no big deal --- it's only one source.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmReadoutFake.c

    r15838 r16835  
    126126            if (!pmSourceDefinePixels(fakeSource, readout, x + xOffset->data.S32[i],
    127127                                      y + yOffset->data.S32[i], fakeRadius)) {
    128                 psError(PS_ERR_UNKNOWN, false, "Unable to define pixels for source.");
    129                 psFree(readout);
    130                 psFree(fakeModel);
    131                 return false;
     128                psErrorClear();
     129                continue;
    132130            }
    133131            if (!pmModelAddWithOffset(fakeSource->pixels, NULL, fakeModel, PM_MODEL_OP_FULL, 0,
    134132                                      - xOffset->data.S32[i], - yOffset->data.S32[i])) {
    135                 psError(PS_ERR_UNKNOWN, false, "Unable to add model of source to image.");
    136                 psFree(readout);
    137                 psFree(fakeModel);
    138                 return false;
     133                psErrorClear();
     134                continue;
    139135            }
    140136        } else {
    141137            if (!pmSourceDefinePixels(fakeSource, readout, x, y, fakeRadius)) {
    142                 psError(PS_ERR_UNKNOWN, false, "Unable to define pixels for source.");
    143                 psFree(readout);
    144                 psFree(fakeModel);
    145                 return false;
     138                psErrorClear();
     139                continue;
    146140            }
    147141            if (!pmModelAdd(fakeSource->pixels, NULL, fakeModel, PM_MODEL_OP_FULL, 0)) {
    148                 psError(PS_ERR_UNKNOWN, false, "Unable to add model of source to image.");
    149                 psFree(readout);
    150                 psFree(fakeModel);
    151                 return false;
     142                psErrorClear();
     143                continue;
    152144            }
    153145        }
Note: See TracChangeset for help on using the changeset viewer.