Skip to content
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

FEAT: Add an App method to print project tree for embedding scenario #779

Merged
merged 12 commits into from
Jun 21, 2024

Conversation

dipinknair
Copy link
Collaborator

@dipinknair dipinknair commented Jun 18, 2024

This will help to visualize the hierarchical project structure inside mechanical since embedding is without UI

>>> import ansys.mechanical.core as mech
>>> app = mech.App()
>>> app.update_globals(globals())
>>> app.print_tree(DataModel.Project)
... ├── Project
... |  ├── Model
... |  |  ├── Geometry Imports
... |  |  ├── Geometry
... |  |  ├── Materials
... |  |  ├── Coordinate Systems
... |  |  |  ├── Global Coordinate System
... |  |  ├── Remote Points
... |  |  ├── Mesh

>>> app.print_tree(DataModel.Project, 1)
... ├── Project
... ... truncating after 1 lines

@github-actions github-actions bot added the enhancement New features or code improvements label Jun 18, 2024
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 18, 2024
@dipinknair dipinknair marked this pull request as ready for review June 18, 2024 21:11
@dipinknair dipinknair requested a review from a team as a code owner June 18, 2024 21:11
@dipinknair dipinknair self-assigned this Jun 18, 2024
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.

Project coverage is 81.30%. Comparing base (98708c9) to head (d7b3168).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #779      +/-   ##
==========================================
+ Coverage   81.23%   81.30%   +0.07%     
==========================================
  Files          32       32              
  Lines        2046     2065      +19     
==========================================
+ Hits         1662     1679      +17     
- Misses        384      386       +2     

@dipinknair dipinknair changed the title FEAT: Add an App() method to print project tree for embedding scenario FEAT: Add an App method to print project tree for embedding scenario Jun 18, 2024
@dipinknair dipinknair requested a review from koubaa June 19, 2024 15:23
@github-actions github-actions bot added the maintenance Package and maintenance related label Jun 19, 2024
@dipinknair dipinknair requested a review from koubaa June 19, 2024 16:32
@dipinknair dipinknair merged commit 25a6a4c into main Jun 21, 2024
57 checks passed
@dipinknair dipinknair deleted the feat/tree branch June 21, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New features or code improvements maintenance Package and maintenance related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants