Skip to content

Conversation

@hpohekar
Copy link
Collaborator

@hpohekar hpohekar commented Jan 2, 2026

Context

The default mode was None and error was not handled properly.

Change Summary

The default mode is set to Standalone and error is raised for an incorrect launch mode.

Rationale

The return was None in the current case.

Impact

Launcher utils and testing.

@github-actions github-actions bot added the bug Issue, problem or error in PyFluent label Jan 2, 2026
@hpohekar hpohekar marked this pull request as ready for review January 2, 2026 10:58
@hpohekar hpohekar requested a review from mkundu1 as a code owner January 2, 2026 10:58
Copilot AI review requested due to automatic review settings January 2, 2026 10:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the create_launcher function to handle default and invalid launch modes properly. Previously, the function returned None when no launch mode was specified and did not raise an error for invalid modes.

Key Changes:

  • Set LaunchMode.STANDALONE as the default when no launch mode is provided
  • Add error handling to raise DisallowedValuesError for invalid launch modes
  • Add comprehensive test coverage for the fixed function

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/ansys/fluent/core/launcher/launcher.py Updated create_launcher to default to STANDALONE mode and raise an error for invalid modes, improved type hints and documentation
src/ansys/fluent/core/launcher/launcher_utils.py Added type checking for env parameter before updating environment dictionary
tests/test_launcher.py Added new test function to verify default mode, valid modes, and error handling for invalid modes
doc/changelog.d/4783.fixed.md Added changelog entry documenting the fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hpohekar hpohekar linked an issue Jan 2, 2026 that may be closed by this pull request
Copilot AI review requested due to automatic review settings January 2, 2026 10:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 2, 2026 11:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 5, 2026 14:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hpohekar hpohekar enabled auto-merge (squash) January 6, 2026 04:05
@hpohekar hpohekar merged commit 2c32d45 into main Jan 6, 2026
33 checks passed
@hpohekar hpohekar deleted the fix/update_create_launcher branch January 6, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue, problem or error in PyFluent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Queries about launcher code

6 participants