本文整理汇总了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