Skip to content

changed PointArray from gt to ge 2 #1096

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

Merged
merged 1 commit into from
May 27, 2025
Merged
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
6 changes: 3 additions & 3 deletions flow360/component/simulation/outputs/output_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class PointArray(_PointEntityBase):
# pylint: disable=no-member
start: LengthType.Point = pd.Field(description="The starting point of the line.")
end: LengthType.Point = pd.Field(description="The end point of the line.")
number_of_points: int = pd.Field(gt=2, description="Number of points along the line.")
number_of_points: int = pd.Field(ge=2, description="Number of points along the line.")


class PointArray2D(_PointEntityBase):
Expand Down Expand Up @@ -176,5 +176,5 @@ class PointArray2D(_PointEntityBase):
origin: LengthType.Point = pd.Field(description="The corner of the parallelogram.")
u_axis_vector: LengthType.Axis = pd.Field(description="The scaled u-axis of the parallelogram.")
v_axis_vector: LengthType.Axis = pd.Field(description="The scaled v-axis of the parallelogram.")
u_number_of_points: int = pd.Field(gt=2, description="The number of points along the u axis.")
v_number_of_points: int = pd.Field(gt=2, description="The number of points along the v axis.")
u_number_of_points: int = pd.Field(ge=2, description="The number of points along the u axis.")
v_number_of_points: int = pd.Field(ge=2, description="The number of points along the v axis.")