From 1d47d1792980f7d9cbd00cd96fb7c2bf32c9a153 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 7d6de7db06..08fa6f1b99 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(