core.py 文件源码

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

项目:sbpy 作者: mommermi 项目源码 文件源码
def _convert_unit(self, rho, eph):
        """Make units match those of self."""
        if not self.dim.unit.is_equivalent(rho.unit):
            if rho.unit.is_equivalent(u.m):
                x = rho_as_angle(rho, eph)
            else:
                x = rho_as_length(rho, eph)
        else:
            x = rho

        return x
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号