Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e982cfcc authored by LEGRAND Jonathan's avatar LEGRAND Jonathan
Browse files

Fix vtTransformation type testing with `isinstance`

parent 838ff150
Branches
Tags
No related merge requests found
......@@ -73,7 +73,7 @@ def compose_trsf(trsfs, params="", **kwargs):
elif isinstance(trsfs, list):
if _verbose_ >= 2:
print("call of '" + str(proc) + "': python library")
if type(trsfs[0]) is not vtTransformation:
if not isinstance(trsfs[0], vtTransformation):
if _verbose_ >= 1:
print(str(proc) + ": unexpected type '" + str(type(trsfs[0])) + "'for 'trsfs[0]'")
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment