From 3ddbdf4e6606a84b6778783428b4a57f8593b4db Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Thu, 20 Jun 2024 19:52:30 -0500 Subject: [PATCH 1/2] fix building gallery check --- src/ansys/mechanical/core/embedding/app.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/ansys/mechanical/core/embedding/app.py b/src/ansys/mechanical/core/embedding/app.py index 3fe0d019a..fa475e515 100644 --- a/src/ansys/mechanical/core/embedding/app.py +++ b/src/ansys/mechanical/core/embedding/app.py @@ -123,8 +123,6 @@ def __init__(self, db_file=None, private_appdata=False, **kwargs): if len(INSTANCES) != 0: self._app = INSTANCES[0] self._app.new() - self._version = self._app.version - self._disposed = True return if len(INSTANCES) > 0: raise Exception("Cannot have more than one embedded mechanical instance") @@ -334,6 +332,12 @@ def _update_all_globals(self) -> None: def _print_tree(self, node, max_lines, lines_count, indentation): """Recursively print till provided maximum lines limit. + Each object in the tree is expected to have the following attributes: + - Name: The name of the object. + - Suppressed : Print as suppressed, if object is suppressed. + - Children: Checks if object have children. + Each child node is expected to have the all these attributes. + Parameters ---------- lines_count: int, optional @@ -366,12 +370,6 @@ def print_tree(self, node, max_lines=80, lines_count=0, indentation=""): """ Print the hierarchical tree representation of the Mechanical project structure. - Each object in the tree is expected to have the following attributes: - - Name: The name of the object. - - Suppressed : Print as suppressed, if object is suppressed. - - Children: Checks if object have children. - Each child node is expected to have the all these attributes. - Parameters ---------- node: ExtAPI object From e59b8447fbe254b6d67b6747f66a11056e68e01b Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot Date: Fri, 21 Jun 2024 00:55:58 +0000 Subject: [PATCH 2/2] Adding changelog entry: 783.fixed.md --- doc/changelog.d/783.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/783.fixed.md diff --git a/doc/changelog.d/783.fixed.md b/doc/changelog.d/783.fixed.md new file mode 100644 index 000000000..e2f9e635b --- /dev/null +++ b/doc/changelog.d/783.fixed.md @@ -0,0 +1 @@ +Fix: Building gallery check \ No newline at end of file