Skip to content

Fix deprecation warnings printed when using TransInfo #3071

@arporter

Description

@arporter

Unfortunately, using TransInfo causes deprecation errors about the Dynamo0p3 naming of Transformations. @hiker said this patch will fix it:

git diff psyGen.py
diff --git a/src/psyclone/psyGen.py b/src/psyclone/psyGen.py
index 3bf18fb849..748eff21ef 100644
--- a/src/psyclone/psyGen.py
+++ b/src/psyclone/psyGen.py
@@ -2701,7 +2701,8 @@ class TransInfo():
         import inspect
         return [cls for name, cls in inspect.getmembers(module)
                 if inspect.isclass(cls) and not inspect.isabstract(cls) and
-                issubclass(cls, base_class) and cls is not base_class]
+                issubclass(cls, base_class) and cls is not base_class
+                and name[:9] != "Dynamo0p3"]


@dataclass

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions