本文整理汇总了Python中iris.coords.AuxCoord.has_lazy_points方法的典型用法代码示例。如果您正苦于以下问题:Python AuxCoord.has_lazy_points方法的具体用法?Python AuxCoord.has_lazy_points怎么用?Python AuxCoord.has_lazy_points使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iris.coords.AuxCoord
的用法示例。
在下文中一共展示了AuxCoord.has_lazy_points方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_lazy_points
# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import has_lazy_points [as 别名]
def test_lazy_points(self):
# Getting lazy points realises them.
coord = AuxCoord(self.pts_lazy)
self.assertTrue(coord.has_lazy_points())
result = coord.points
self.assertFalse(coord.has_lazy_points())
self.assertEqualRealArraysAndDtypes(result, self.pts_real)
示例2: test_set_bounds_with_lazy_points
# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import has_lazy_points [as 别名]
def test_set_bounds_with_lazy_points(self):
# Setting bounds does not change lazy points.
coord = AuxCoord(self.pts_lazy, bounds=self.bds_real)
new_bounds = self.bds_real + 102.3
coord.bounds = new_bounds
self.assertTrue(coord.has_lazy_points())
示例3: test_lazy_bounds_with_lazy_points
# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import has_lazy_points [as 别名]
def test_lazy_bounds_with_lazy_points(self):
# Getting lazy bounds does not fetch the points.
coord = AuxCoord(self.pts_lazy, bounds=self.bds_lazy)
coord.bounds
self.assertTrue(coord.has_lazy_points())
示例4: test_lazy_core_realise
# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import has_lazy_points [as 别名]
def test_lazy_core_realise(self):
coord = AuxCoord(self.pts_lazy)
coord.points
result = coord.has_lazy_points()
self.assertFalse(result)
示例5: test_lazy_core
# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import has_lazy_points [as 别名]
def test_lazy_core(self):
coord = AuxCoord(self.pts_lazy)
result = coord.has_lazy_points()
self.assertTrue(result)
示例6: test_real_core
# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import has_lazy_points [as 别名]
def test_real_core(self):
coord = AuxCoord(self.pts_real)
result = coord.has_lazy_points()
self.assertFalse(result)