Skip to content

Conversation

dipinknair
Copy link
Collaborator

@dipinknair dipinknair commented Mar 7, 2025

From Ansys Mechanical 25R2 onwards it is possible to interact with license available. LicenseManager provides useful APIs to do this.

>>> app.license_manager.show()
Ansys Mechanical Enterprise - Enabled
Ansys Mechanical Premium - Enabled
Ansys Mechanical Pro - Enabled
>>> app.license_manager.disable_session_license()
>>> app
Ansys Mechanical []
Product Version:252
Software build date: ....
>>> app.license_manager.enable_session_license()
>>> app
Ansys Mechanical [Ansys Mechanical Enterprise]
Product Version:252
Software build date: ....
>>> app.license_manager.get_license_status("Ansys Mechanical Enterprise")
Enabled
>>> app.license_manager.set_license_status("Ansys Mechanical Enterprise", False)
>>> app.license_manager.get_license_status("Ansys Mechanical Enterprise")
Disabled

@github-actions github-actions bot added the enhancement New features or code improvements label Mar 7, 2025
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 7, 2025
Copy link

codacy-production bot commented Mar 10, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.30% (target: -1.00%) 98.18%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (f0de6c4) 2564 2199 85.76%
Head commit (5ca3e1a) 2619 (+55) 2254 (+55) 86.06% (+0.30%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1118) 55 54 98.18%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Copy link

codecov bot commented Mar 10, 2025

Codecov Report

❌ Patch coverage is 98.18182% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.06%. Comparing base (f0de6c4) to head (5ca3e1a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1118      +/-   ##
==========================================
+ Coverage   85.76%   86.06%   +0.29%     
==========================================
  Files          39       40       +1     
  Lines        2564     2619      +55     
==========================================
+ Hits         2199     2254      +55     
  Misses        365      365              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dipinknair dipinknair marked this pull request as ready for review August 15, 2025 14:38
@dipinknair dipinknair requested a review from a team as a code owner August 15, 2025 14:38
@dipinknair dipinknair requested a review from koubaa August 15, 2025 14:46
@dipinknair dipinknair merged commit 2031dfb into main Aug 15, 2025
56 of 57 checks passed
@dipinknair dipinknair deleted the feat/license branch August 15, 2025 17:59
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants