-
Notifications
You must be signed in to change notification settings - Fork 7
[FXC-342] [FXC-343] Add output classes for imported surfaces #1352
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the plan for back end integration? (Submit imported surfaces to cloud)?
def inject_imported_surface_info(entity: ImportedSurface): | ||
"""inject entity info""" | ||
return { | ||
"meshFile": entity.file_name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we tested this e2e? Will backend normalize the file name after submitted to S3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't test e2e yet. Submission of imported surfaces will be handled by Feilin's view and edit feature.
@@ -816,7 +901,17 @@ def translate_output(input_params: SimulationParams, translated: dict): | |||
input_params, outputs, inject_isosurface_info | |||
) | |||
|
|||
##:: Step5: Get translated["monitorOutput"] | |||
##:: Step5: Get translated["importedSurfaceOutput"] | |||
if has_instance_in_list(outputs, ImportedSurfaceOutput): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translator unit tests?
@@ -565,6 +565,17 @@ def _will_be_deleted_by_mesher(self, farfield_method: Literal["auto", "quasi-3d" | |||
raise ValueError(f"Unknown auto farfield generation method: {farfield_method}.") | |||
|
|||
|
|||
@final | |||
class ImportedSurface(EntityBase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the plan to add accessor in class Geometry for referencing ImprotedSurface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for Feilin's feature. We will more likely create a class parallel to Geometry. It will look something like project.imported_surfaces["*"]
.
No description provided.