loop.py 文件源码

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

项目:synthesizAR 作者: wtbarnes 项目源码 文件源码
def __init__(self, name, coordinates, field_strength):
        # set unique label for loop object
        self.name = name
        # Load in cartesian coordinates, assign units as centimeters
        self.coordinates = coordinates*u.cm
        # Load in field strength along the field line; convert from Tesla to Gauss
        self.field_strength = (np.array(field_strength)*u.T).to(u.Gauss)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号