Skip to content

Commit

Permalink
CI fix: type comparison in Python
Browse files Browse the repository at this point in the history
No idea why this check is triggered by this PR
  • Loading branch information
franzpoeschel committed Aug 1, 2023
1 parent e7ddd89 commit 01be7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binding/python/openpmd_api/pipe/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 01be7e9

Please sign in to comment.