IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 8, 2009, 4:53:44 PM (17 years ago)
Author:
Paul Price
Message:

Merging changes that were supposed to go onto this branch, but went onto the mainline instead. Decided not to fix the mainline because of risk of conflicts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090108/ppStack/src/ppStackSources.c

    r21016 r21094  
    1010
    1111
    12 bool ppStackSourcesTransparency(const psArray *sourceLists, const pmFPAview *view, const pmConfig *config)
     12float ppStackSourcesTransparency(const psArray *sourceLists, const pmFPAview *view, const pmConfig *config)
    1313{
    14     PS_ASSERT_ARRAY_NON_NULL(sourceLists, false);
    15     PS_ASSERT_PTR_NON_NULL(view, false);
    16     PS_ASSERT_PTR_NON_NULL(config, false);
     14    PS_ASSERT_ARRAY_NON_NULL(sourceLists, NAN);
     15    PS_ASSERT_PTR_NON_NULL(view, NAN);
     16    PS_ASSERT_PTR_NON_NULL(config, NAN);
    1717
    1818#ifdef TESTING
     
    4646    if (!airmassZP) {
    4747        psError(PS_ERR_UNKNOWN, false, "Unable to find ZP.AIRMASS in recipe.");
    48         return false;
     48        return NAN;
    4949    }
    5050
     
    6969                    exptime, airmass, expFilter);
    7070            psFree(zp);
    71             return false;
     71            return NAN;
    7272        }
    7373
     
    7979                        "Unable to find airmass term (ZP.AIRMASS) for filter %s", filter);
    8080                psFree(zp);
    81                 return false;
     81                return NAN;
    8282            }
    8383        } else if (strcmp(filter, expFilter) != 0) {
    8484            psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Filters don't match: %s vs %s", filter, expFilter);
    8585            psFree(zp);
    86             return false;
     86            return NAN;
    8787        }
    8888
     
    9595        psError(PS_ERR_UNKNOWN, false, "Unable to match sources");
    9696        psFree(zp);
    97         return false;
     97        return NAN;
    9898    }
    9999    psVector *trans = pmSourceMatchRelphot(matches, zp, iter, tol, starLimit, transIter, transRej,
     
    128128    if (!trans) {
    129129        psError(PS_ERR_UNKNOWN, false, "Unable to measure transparencies");
    130         return false;
     130        return NAN;
    131131    }
    132132
     
    158158            psError(PS_ERR_UNKNOWN, false, "Unable to match sources");
    159159            psFree(zp);
    160             return false;
     160            return NAN;
    161161        }
    162162        psVector *trans = pmSourceMatchRelphot(matches, zp, iter, tol, starLimit, transIter, transRej,
     
    165165    }
    166166#endif
    167     return true;
     167
     168    return sumExpTime;
    168169}
Note: See TracChangeset for help on using the changeset viewer.