def global_scope(self):
"""Determine scope of this attribute.
Returns
=======
out : bool
True if global (i.e. gAttr), False if zAttr
"""
scope = ctypes.c_long(0)
self._call(const.GET_, const.ATTR_SCOPE_, ctypes.byref(scope))
if scope.value == const.GLOBAL_SCOPE.value:
return True
elif scope.value == const.VARIABLE_SCOPE.value:
return False
else:
raise CDFError(const.BAD_SCOPE)
评论列表
文章目录