Skip to content

Conversation

@greschd
Copy link
Member

@greschd greschd commented Jul 2, 2024

Add an export_modeling_ply_geometries method to the Model, which the geometry of all modeling plies

Other changes:

  • Add a helper function for managing the version of the server which supports a particular feature.
  • Since that required knowing the server version at the TreeObject level, convert the channel member
    into a ServerWrapper which contains both the channel and version.

@greschd greschd force-pushed the feat/ply_geometry_export branch 4 times, most recently from 21694de to c0fc82b Compare July 2, 2024 19:34
@wiz-inc-572fc38784
Copy link

Wiz Scan Summary

IaC Misconfigurations 0C 0H 0M 0L 0I
Vulnerabilities 1C 1H 5M 1L 0I
Sensitive Data 0C 0H 0M 0L 0I
Total 1C 1H 5M 1L 0I
Secrets 0🔑

include_boundary: bool = True,
include_first_material_direction: bool = True,
include_second_material_direction: bool = True,
arrow_length: float = 1.0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if that is a reasonable default. What about something like model.average_element_size?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, square root of average_element_size is consistent with the ACP GUI.

@greschd greschd changed the base branch from feat/adaptive_mesh_workflow to main July 3, 2024 06:34
@greschd greschd changed the base branch from main to feat/adaptive_mesh_workflow July 3, 2024 06:34
greschd added 3 commits July 3, 2024 15:03
Add a helper to manage the minimum server version needed to run
specific methods on tree objects.

To implement this, the 'channel' stored in the tree objects was
converted into a 'ServerWrapper' which contains the channel and
the server version.
@greschd greschd force-pushed the feat/ply_geometry_export branch from c0fc82b to 08cc403 Compare July 3, 2024 13:05
@greschd greschd force-pushed the feat/ply_geometry_export branch from c05ee24 to 50ca475 Compare July 3, 2024 13:54
greschd added 2 commits July 3, 2024 15:57
The ansys-mapdl-core package is incompatible with numpy 2.0. However,
older versions did not declare this incompatibility. To avoid
explicitly limiting the numpy version here (and thus missing when
the incompatibility is resolved), we force a sufficiently new
version of ansys-mapdl-core that does declare the incompatibility.

Otherwise, 'poetry' resolves the new numpy version, breaking the
installation of ansys-mapdl-core.
@greschd greschd force-pushed the feat/ply_geometry_export branch from 61d51f7 to dfc3391 Compare July 3, 2024 14:20
@codecov
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

Attention: Patch coverage is 95.65217% with 3 lines in your changes missing coverage. Please review.

Project coverage is 92.02%. Comparing base (93ce405) to head (3b016cb).

Files Patch % Lines
src/ansys/acp/core/_tree_objects/base.py 95.00% 2 Missing ⚠️
...ys/acp/core/_tree_objects/_grpc_helpers/mapping.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                       @@
##           feat/adaptive_mesh_workflow     #545      +/-   ##
===============================================================
+ Coverage                        91.98%   92.02%   +0.04%     
===============================================================
  Files                               82       82              
  Lines                             4252     4287      +35     
===============================================================
+ Hits                              3911     3945      +34     
- Misses                             341      342       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@greschd greschd enabled auto-merge (squash) July 3, 2024 14:25
@greschd greschd merged commit 7949116 into feat/adaptive_mesh_workflow Jul 3, 2024
@greschd greschd deleted the feat/ply_geometry_export branch July 3, 2024 19:28
greschd added a commit that referenced this pull request Aug 20, 2024
Merging the changes from #545 onto `main`.

Add an `export_modeling_ply_geometries` method to the `Model`, which the geometry of all modeling plies

Other changes:
- Add a helper function for managing the version of the server which supports a particular feature.
- Since that required knowing the server version at the `TreeObject` level, convert the `channel` member into a `ServerWrapper` which contains both the channel and version.
- Force newer version of `ansys-mapdl-core`, to avoid poetry resolving numpy to version 2.0 and downgrading `ansys-mapdl-core`, since older versions do not declare their incompatibility with numpy 2.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants