From 91576e11b84aa9de886634e9a37c0c3db3ea09c7 Mon Sep 17 00:00:00 2001 From: Manolis Papadakis Date: Fri, 24 Feb 2023 13:30:49 -0800 Subject: [PATCH] Fix another use of inequality on Shape --- legate/core/partition.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legate/core/partition.py b/legate/core/partition.py index 297c0c5d9..339e2c1cd 100644 --- a/legate/core/partition.py +++ b/legate/core/partition.py @@ -238,7 +238,9 @@ def is_disjoint_for(self, launch_domain: Optional[Rect]) -> bool: ) def has_color(self, color: Shape) -> bool: - return color >= 0 and color < self._color_shape + return all(a >= 0 for a in color) and all( + a < b for (a, b) in zip(color, self._color_shape) + ) @lru_cache def get_subregion_size(self, extents: Shape, color: Shape) -> Shape: