本文整理汇总了Python中pydicom.dataset.Dataset.SOPEustaceUID方法的典型用法代码示例。如果您正苦于以下问题:Python Dataset.SOPEustaceUID方法的具体用法?Python Dataset.SOPEustaceUID怎么用?Python Dataset.SOPEustaceUID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pydicom.dataset.Dataset
的用法示例。
在下文中一共展示了Dataset.SOPEustaceUID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testEqualityUnknown
# 需要导入模块: from pydicom.dataset import Dataset [as 别名]
# 或者: from pydicom.dataset.Dataset import SOPEustaceUID [as 别名]
def testEqualityUnknown(self):
"""Dataset: equality returns correct value with extra members """
# Non-element class members are ignored in equality testing
d = Dataset()
d.SOPEustaceUID = '1.2.3.4'
assert d == d
e = Dataset()
e.SOPEustaceUID = '1.2.3.5'
assert d == e
示例2: testEqualityUnknown
# 需要导入模块: from pydicom.dataset import Dataset [as 别名]
# 或者: from pydicom.dataset.Dataset import SOPEustaceUID [as 别名]
def testEqualityUnknown(self):
"""Dataset: equality returns correct value with extra members """
d = Dataset()
d.SOPEustaceUID = "1.2.3.4"
self.assertTrue(d == d)
e = Dataset()
e.SOPEustaceUID = "1.2.3.4"
self.assertTrue(d == e)
e.SOPEustaceUID = "1.2.3.5"
self.assertFalse(d == e)