Skip to content

Commit fefa44f

Browse files
Minor render output validation service fixes (#1664)
1 parent 8d14b18 commit fefa44f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flow360/component/simulation/outputs/outputs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,9 @@ def ensure_surface_existence(cls, value, param_info: ParamsValidationInfo):
740740
@contextual_model_validator(mode="after")
741741
def check_not_empty(self, param_info: ParamsValidationInfo):
742742
"""Verify the render group has at least one entity assigned to it"""
743-
expanded_surfaces = param_info.expand_entity_list(self.surfaces)
743+
expanded_surfaces = (
744+
param_info.expand_entity_list(self.surfaces) if self.surfaces is not None else None
745+
)
744746
if not expanded_surfaces and not self.slices and not self.isosurfaces:
745747
raise ValueError(
746748
"Render group should include at least one entity (surface, slice or isosurface)"
@@ -788,6 +790,7 @@ class RenderOutput(_AnimationSettings):
788790
None, description="Optional model transform to apply to all entities"
789791
)
790792
output_type: Literal["RenderOutput"] = pd.Field("RenderOutput", frozen=True)
793+
private_attribute_id: str = pd.Field(default_factory=generate_uuid, frozen=True)
791794

792795
@pd.field_validator("groups", mode="after")
793796
@classmethod

0 commit comments

Comments
 (0)