Skip to content

Commit 3ddbdf4

Browse files
committed
fix building gallery check
1 parent 25a6a4c commit 3ddbdf4

File tree

1 file changed

+6
-8
lines changed
  • src/ansys/mechanical/core/embedding

1 file changed

+6
-8
lines changed

src/ansys/mechanical/core/embedding/app.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ def __init__(self, db_file=None, private_appdata=False, **kwargs):
123123
if len(INSTANCES) != 0:
124124
self._app = INSTANCES[0]
125125
self._app.new()
126-
self._version = self._app.version
127-
self._disposed = True
128126
return
129127
if len(INSTANCES) > 0:
130128
raise Exception("Cannot have more than one embedded mechanical instance")
@@ -334,6 +332,12 @@ def _update_all_globals(self) -> None:
334332
def _print_tree(self, node, max_lines, lines_count, indentation):
335333
"""Recursively print till provided maximum lines limit.
336334
335+
Each object in the tree is expected to have the following attributes:
336+
- Name: The name of the object.
337+
- Suppressed : Print as suppressed, if object is suppressed.
338+
- Children: Checks if object have children.
339+
Each child node is expected to have the all these attributes.
340+
337341
Parameters
338342
----------
339343
lines_count: int, optional
@@ -366,12 +370,6 @@ def print_tree(self, node, max_lines=80, lines_count=0, indentation=""):
366370
"""
367371
Print the hierarchical tree representation of the Mechanical project structure.
368372
369-
Each object in the tree is expected to have the following attributes:
370-
- Name: The name of the object.
371-
- Suppressed : Print as suppressed, if object is suppressed.
372-
- Children: Checks if object have children.
373-
Each child node is expected to have the all these attributes.
374-
375373
Parameters
376374
----------
377375
node: ExtAPI object

0 commit comments

Comments
 (0)