Skip to content

deprecate: mark download_latent_parameters_json as deprecated#300

Merged
msd-11 merged 4 commits into
mainfrom
deprecate/download-latent-params
Jun 8, 2026
Merged

deprecate: mark download_latent_parameters_json as deprecated#300
msd-11 merged 4 commits into
mainfrom
deprecate/download-latent-params

Conversation

@msd-11

@msd-11 msd-11 commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@msd-11 msd-11 self-assigned this Apr 29, 2026
Copilot AI review requested due to automatic review settings April 29, 2026 08:39
@msd-11 msd-11 requested a review from a team as a code owner April 29, 2026 08:39
@msd-11 msd-11 requested review from awoimbee and u8slvn and removed request for a team April 29, 2026 08:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Deprecates GeomAIWorkspace.download_latent_parameters_json and extends GeomAIWorkspace.get_latent_parameters to optionally write to / return a binary file object when a target file is provided.

Changes:

  • Added a PySimAIDepreciationWarning warning to download_latent_parameters_json.
  • Updated get_latent_parameters to accept an optional file parameter and return either parsed JSON (no file) or a binary file/None (file provided).
  • Added a unit test covering the “file provided” behavior for get_latent_parameters.

Reviewed changes

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

File Description
src/ansys/simai/core/data/geomai/workspaces.py Adds deprecation warning and modifies get_latent_parameters to optionally download into a file.
tests/geomai/test_geomai_workspaces.py Adds a test to validate get_latent_parameters(file=...) returns binary content.

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

Comment thread src/ansys/simai/core/data/geomai/workspaces.py Outdated
Comment thread src/ansys/simai/core/data/geomai/workspaces.py
Comment thread src/ansys/simai/core/data/geomai/workspaces.py
@msd-11 msd-11 requested a review from marielelandais April 29, 2026 09:36
Comment thread src/ansys/simai/core/data/geomai/workspaces.py Outdated
Comment thread src/ansys/simai/core/data/geomai/workspaces.py Outdated
msd-11 and others added 3 commits May 26, 2026 13:41
Co-authored-by: Marie Lelandais <125036775+marielelandais@users.noreply.github.com>
Co-authored-by: Marie Lelandais <125036775+marielelandais@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@msd-11 msd-11 requested a review from marielelandais May 26, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread src/ansys/simai/core/data/geomai/workspaces.py

@marielelandais marielelandais left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perfect! Thanks @msd-11

@msd-11 msd-11 merged commit 853a86b into main Jun 8, 2026
1 check passed
@msd-11 msd-11 deleted the deprecate/download-latent-params branch June 8, 2026 14:16
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