MeshIO.py 文件源码

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

项目:discretize 作者: simpeg 项目源码 文件源码
def load_mesh(filename):
    """
    Open a json file and load the mesh into the target class

    As long as there are no namespace conflicts, the target __class__
    will be stored on the properties.HasProperties registry and may be
    fetched from there.

    :param str filename: name of file to read in
    """
    with open(filename, 'r') as outfile:
        jsondict = json.load(outfile)
        data = BaseMesh.deserialize(jsondict, trusted=True)
    return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号