Skip to content

Conversation

seanpearsonuk
Copy link
Collaborator

@seanpearsonuk seanpearsonuk commented May 31, 2022

In this PR, PyPIM is integrated into PyFluent. This means that there is no special PyPIM code to insert into Jupyter Notebooks for PyFluent on Fuji, making those notebooks more portable.

PyMADL has already made a similar adoption into its launch code.

Subsequent work can add dependency on the uploader service to take explicit file upload/download operations out of the hands of users and make file IO operations in notebooks portable also.

Testing;

added unit test
tested on Ansys Lab, removing explicit use of PyPIM there.

_THIS_DIR = os.path.dirname(__file__)
_OPTIONS_FILE = os.path.join(_THIS_DIR, "fluent_launcher_options.json")
FLUENT_VERSION = "22.2"
PIM_FLUENT_PRODUCT_VERSION = FLUENT_VERSION.replace(".", "")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it need to be public?

Suggested change
PIM_FLUENT_PRODUCT_VERSION = FLUENT_VERSION.replace(".", "")
_PIM_FLUENT_PRODUCT_VERSION = FLUENT_VERSION.replace(".", "")

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Does it need to be public?

The only reason was that it is accessed in the added test. So, it's a moot point perhaps.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah ok, I see it now. If it's on purpose that's fine.

if start_transcript:
self.start_transcript()

self._remote_instance = remote_instance
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason this is there 2x?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, this is a bad merge, resolving conflicts

@seanpearsonuk seanpearsonuk merged commit 6344ff4 into main Jun 1, 2022
@seanpearsonuk seanpearsonuk deleted the feat/pypim branch June 1, 2022 16:30
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.

4 participants