当前位置: 首页>>代码示例>>Python>>正文


Python DataModel.load方法代码示例

本文整理汇总了Python中datamodel.DataModel.load方法的典型用法代码示例。如果您正苦于以下问题:Python DataModel.load方法的具体用法?Python DataModel.load怎么用?Python DataModel.load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在datamodel.DataModel的用法示例。


在下文中一共展示了DataModel.load方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: DataModel

# 需要导入模块: from datamodel import DataModel [as 别名]
# 或者: from datamodel.DataModel import load [as 别名]
import numpy as np

from datamodel import DataModel



if __name__=='__main__':


    if False:
        from tetrahedral import ChiralTetrahedral as Group
##        from tetrahedral import Null as Group
##        from octahedral import Tetrahedral as Group
##        from octahedral import Null as Group
        from octahedral import Pyritohedral as Group
##        from octahedral import ChiralOctahedral as Group
##        from octahedral import Tetrahedral as Group
##        from octahedral import Origin as Group
##        from dihedral import ChiralDihedral as Group
##        from icosahedral import ChiralIcosahedral as Group
##        from icosahedral import Icosahedral as Group
        dm = DataModel(Group())
    else:
##        dm = DataModel.load(r'C:\Users\Eelco\Dropbox\Escheresque\examples\fishes.sch')
##        dm = DataModel.load(r'C:\Users\Eelco\Dropbox\Escheresque\examples\angles_and_demons.sch')
        dm = DataModel.load(r'C:\Users\Eelco Hoogendoorn\Dropbox\Escheresque\code\v2\test.sch')

print dm.edges
开发者ID:EelcoHoogendoorn,项目名称:Escheresque,代码行数:30,代码来源:tests.py


注:本文中的datamodel.DataModel.load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。