IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27989 for trunk/ppSim


Ignore:
Timestamp:
May 17, 2010, 5:49:51 PM (16 years ago)
Author:
Paul Price
Message:

Removing the 'FPA.OBS' concept (once called 'FPA.NAME'). The original idea was to provide a bit of protection against user error --- not reading a flat into an FPA containing an image, etc. However, that's not really necessary, and there's not always a nice keyword that we can use that is the exposure number or something like that, and so we end up with a lot of unneccessary warnings. Better to do away with it completely. It's not used for anything except that check.

Location:
trunk/ppSim/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimCreate.c

    r23836 r27989  
    198198
    199199    if (phuLevel == PM_FPA_LEVEL_FPA) {
    200         if (!pmFPAAddSourceFromView(fpa, "Simulation", view, output->format)) {
     200        if (!pmFPAAddSourceFromView(fpa, view, output->format)) {
    201201            psError(PS_ERR_UNKNOWN, false, "Unable to add PHU to FPA.");
    202202            psFree(fpa);
     
    209209    while ((chip = pmFPAviewNextChip(view, fpa, 1))) {
    210210        if (phuLevel == PM_FPA_LEVEL_CHIP) {
    211             if (!pmFPAAddSourceFromView(fpa, "Simulation", view, output->format)) {
     211            if (!pmFPAAddSourceFromView(fpa, view, output->format)) {
    212212                psError(PS_ERR_UNKNOWN, false, "Unable to add PHU to FPA.");
    213213                psFree(fpa);
     
    220220        while ((cell = pmFPAviewNextCell(view, fpa, 1))) {
    221221            if (phuLevel == PM_FPA_LEVEL_CELL) {
    222                 if (!pmFPAAddSourceFromView(fpa, "Simulation", view, output->format)) {
     222                if (!pmFPAAddSourceFromView(fpa, view, output->format)) {
    223223                    psError(PS_ERR_UNKNOWN, false, "Unable to add PHU to FPA.");
    224224                    psFree(fpa);
  • trunk/ppSim/src/ppSimMosaicChip.c

    r21183 r27989  
    2222    pmChip *inChip = pmFPAviewThisChip(view, in->fpa);
    2323    if (!outChip->hdu && !outChip->parent->hdu) {
    24         const char *name = psMetadataLookupStr(&status, in->fpa->concepts, "FPA.OBS"); // Name of FPA
    25         pmFPAAddSourceFromView(out->fpa, name, view, out->format);
     24        pmFPAAddSourceFromView(out->fpa, view, out->format);
    2625    }
    2726
Note: See TracChangeset for help on using the changeset viewer.