From f002d97032ad63d0c68bd65b4d7ad4a316fb146b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Tue, 1 Aug 2023 16:42:31 +0200 Subject: [PATCH] CI fix: type comparison in Python No idea why this check is triggered by this PR --- src/binding/python/openpmd_api/pipe/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/binding/python/openpmd_api/pipe/__main__.py b/src/binding/python/openpmd_api/pipe/__main__.py index c5312d71b5..d942c5757c 100644 --- a/src/binding/python/openpmd_api/pipe/__main__.py +++ b/src/binding/python/openpmd_api/pipe/__main__.py @@ -234,7 +234,7 @@ def __copy(self, src, dest, current_path="/data/"): Copies data from src to dest. May represent any point in the openPMD hierarchy, but src and dest must both represent the same layer. """ - if (type(src) != type(dest) + if (type(src) is not type(dest) and not isinstance(src, io.IndexedIteration) and not isinstance(dest, io.Iteration)): raise RuntimeError(