spl.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:PyCS 作者: COSMOGRAIL 项目源码 文件源码
def eval(self, jds = None, nostab = True):
        """
        Evaluates the spline at jds, and returns the corresponding mags-like vector.
        By default, we exclude the stabilization points !
        If jds is not None, we use them instead of our own jds (in this case excludestab makes no sense)
        """
        if jds is None:
            if nostab:
                jds = self.datapoints.jds[self.datapoints.mask]
            else:
                jds = self.datapoints.jds
        else:
            # A minimal check for non-extrapolation condition should go here !
            pass

        fitmags = si.splev(jds, (self.t, self.c, self.k))
        # By default ext=0 : we do return extrapolated values
        return fitmags
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号