X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/blobdiff_plain/e8ebee616179da727b335a0ef37732ee19c65b43..77d9e641db24dc1edb6d0e2b91b58d395761616f:/pypol/geometry.py?ds=sidebyside diff --git a/pypol/geometry.py b/pypol/geometry.py index ea751ae..1dc50eb 100644 --- a/pypol/geometry.py +++ b/pypol/geometry.py @@ -71,6 +71,9 @@ class Coordinates: __getitem__ = coordinate + def values(self): + yield from self._coordinates.values() + def __bool__(self): return any(self._coordinates.values())