Skip to content

Fix: Building gallery check #783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/783.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix: Building gallery check
14 changes: 6 additions & 8 deletions src/ansys/mechanical/core/embedding/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Children: has children (or maybe "includes children").

Each child node is expected to have the all these attributes.
Copy link
Collaborator

@sbradrick sbradrick Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each child node is expected to have all of these attributes.


Parameters
----------
lines_count: int, optional
Expand Down Expand Up @@ -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
Expand Down
Loading