modelparameters.py 文件源码

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

项目:MulensModel 作者: rpoleski 项目源码 文件源码
def alpha(self):
        """
        *astropy.Quantity*

        The angle of the source trajectory relative to the binary lens
        axis (or primary-secondary axis). Measured counterclockwise,
        i.e., according to convention advocated by `Skowron et
        al. 2011 (ApJ, 738, 87)
        <http://adsabs.harvard.edu/abs/2011ApJ...738...87S>`_.  May be
        set as a *float* --> assumes "deg" is the default unit.
        Regardless of input value, returns value in degrees.
        """
        if not isinstance(self.parameters['alpha'], u.Quantity):
            self.parameters['alpha'] = self.parameters['alpha'] * u.deg

        return self.parameters['alpha'].to(u.deg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号