IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2009, 4:59:57 PM (17 years ago)
Author:
Paul Price
Message:

Don't assert that the astrometry is the same --- ensure that it is.
This is required for the case of copying over something that has already been generated.

File:
1 edited

Legend:

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

    r23740 r23761  
    479479    if (targetFPA && sourceFPA) {
    480480        if (targetFPA->toSky) {
    481             psAssert (targetFPA->toSky == sourceFPA->toSky, "chips within FPA have inconsistent astrometry references");
    482         } else {
    483             targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky);
    484         }
     481            psFree(targetFPA->toSky);
     482        }
     483        targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky);
    485484        if (targetFPA->toTPA) {
    486             psAssert (targetFPA->toTPA == sourceFPA->toTPA, "chips within FPA have inconsistent astrometry references");
    487         } else {
    488             targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA);
    489         }
     485            psFree(targetFPA->toTPA);
     486        }
     487        targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA);
    490488        if (targetFPA->fromTPA) {
    491             psAssert (targetFPA->fromTPA == sourceFPA->fromTPA, "chips within FPA have inconsistent astrometry references");
    492         } else {
    493             targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA);
    494         }
     489            psFree(targetFPA->fromTPA);
     490        }
     491        targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA);
    495492    }
    496493
Note: See TracChangeset for help on using the changeset viewer.