lc.py 文件源码

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

项目:PyCS 作者: COSMOGRAIL 项目源码 文件源码
def maskinfo(self):
        """
        Returns a description of the masked points and available properties of them.
        Note that the output format can be directly used as a skiplist.
        """

        cps = self.commonproperties()
        lines = []
        maskindices = np.argwhere(self.mask == False)
        for maskindex in maskindices:
            comment = ", ".join(["%s : %s" % (cp, self.properties[maskindex][cp]) for cp in cps])
            txt = "%.1f    %s" % (self.jds[maskindex], comment)
            lines.append(txt)

        txt = "\n".join(lines)
        txt = "# %i Masked points of %s :\n" % (np.sum(self.mask == False), str(self)) + txt
        return txt
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号