Skip to content

refactor: add method to get fluent ui-mode - #957

Merged
jorgepiloto merged 13 commits into
mainfrom
refactor/get-fluent-gui-mode
Mar 25, 2025
Merged

jorgepiloto merged 13 commits into
mainfrom
refactor/get-fluent-gui-mode

Conversation

@mhoeijm

@mhoeijm mhoeijm commented Mar 24, 2025 •

Copy link
Copy Markdown
Contributor

@jorgepiloto @moe-ad modifying how we obtain the fluent ui mode. Fluent ui mode can now be controlled through an environment variable and will default to hidden_gui instead of no_gui. We can switch to no_gui for the self-hosted runner by setting PYFLUENT_UI_MODE to no_gui.

edit: Please note that the no_gui option pops up a cmd window that doesn't seem to close after finishing the (py)fluent session. Not sure it will be a problem on the self-hosted runner.

@mhoeijm
mhoeijm requested review from jorgepiloto and moe-ad March 24, 2025 13:41
@mhoeijm
mhoeijm marked this pull request as ready for review March 24, 2025 13:41
@mhoeijm mhoeijm changed the title refactor: add _get_fluent_ui_mode method refactor: add method to get fluent ui-mode Mar 24, 2025

@jorgepiloto jorgepiloto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggesting to only add one environment variable.

Comment thread src/ansys/heart/preprocessor/mesher.py Outdated
@github-actions github-actions Bot added the ci Pipelines maintenance related label Mar 24, 2025
@mhoeijm
mhoeijm requested a review from jorgepiloto March 24, 2025 18:35
@mhoeijm mhoeijm linked an issue Mar 24, 2025 that may be closed by this pull request
@mhoeijm

mhoeijm commented Mar 24, 2025

Copy link
Copy Markdown
Contributor Author

Also fixes #947

@jorgepiloto jorgepiloto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for adding this, @mhoeijm. This is very flexible. Approving and merging.

@jorgepiloto
jorgepiloto merged commit d7c7abe into main Mar 25, 2025
@jorgepiloto
jorgepiloto deleted the refactor/get-fluent-gui-mode branch March 25, 2025 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Pipelines maintenance related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PYANSYS_HEART_NUM_CPU env variable not valid for fluent session

3 participants