Skip to content

Commit 1786b13

Browse files
jdriesPeter Van Bouwel
authored andcommitted
debug weird caching case
Open-EO/openeo-geopyspark-driver#993
1 parent a07314b commit 1786b13

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

openeo_driver/backend.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,14 @@ def _copy_for_eq(self):
202202
def __eq__(self, o: object) -> bool:
203203
if not isinstance(o,LoadParameters):
204204
return False
205-
return self._copy_for_eq().__eq__(o._copy_for_eq())
205+
if self.sar_backscatter != o.sar_backscatter:
206+
logger.info(f"load_collection: sar_backscatter not equal { self.sar_backscatter } != { o.sar_backscatter }")
207+
return False
208+
copy1 = self._copy_for_eq()
209+
copy2 = o._copy_for_eq()
210+
copy1["sar_backscatter"] = None
211+
copy2["sar_backscatter"] = None
212+
return copy1 == copy2
206213

207214

208215
class AbstractCollectionCatalog(MicroService, metaclass=abc.ABCMeta):

0 commit comments

Comments
 (0)