Skip to content

[Hotfix 25.2]: Fixed a V1 issue where the caseMeta class have different projectID access #1180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions flow360/component/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,18 @@ def info(self) -> CaseMeta:
return super().info

@property
<<<<<<< HEAD
=======
def project_id(self) -> Optional[str]:
"""Returns the project id of the case if case was run with V2 interface."""
if isinstance(self.info, CaseMeta):
return self.info.projectId
if isinstance(self.info, CaseMetaV2):
return self.info.project_id
raise ValueError("Case info is not of type CaseMeta or CaseMetaV2")

@property
>>>>>>> 4c3d28a6 (Fixed a V1 issue where the caseMeta class have different projectID access (#1178))
def volume_mesh(self) -> "VolumeMeshV2":
"""
returns volume mesh
Expand Down