Skip to content

Commit

Permalink
fixed modelType alias in volume zone
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-flexcompute committed Dec 14, 2023
1 parent fde02bb commit 153af65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions flow360/component/flow360_params/flow360_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,9 @@ def validate_boundary(cls, values):


class VolumeZoneType(ABC, Flow360BaseModel):
"""Basic Boundary class"""
"""Basic volume zone class"""

model_type: str
model_type: str = pd.Field(alias="modelType")


class InitialConditionHeatTransfer(Flow360BaseModel):
Expand All @@ -617,7 +617,7 @@ class InitialConditionHeatTransfer(Flow360BaseModel):
class HeatTransferVolumeZone(VolumeZoneType):
"""HeatTransferVolumeZone type"""

model_type = pd.Field("HeatTransfer", const=True)
model_type = pd.Field("HeatTransfer", alias="modelType", const=True)
thermal_conductivity: PositiveFloat = pd.Field(alias="thermalConductivity")
volumetric_heat_source: Optional[Union[NonNegativeFloat, StrictStr]] = pd.Field(
alias="volumetricHeatSource"
Expand Down Expand Up @@ -694,7 +694,7 @@ class Config(Flow360BaseModel.Config):
class FluidDynamicsVolumeZone(VolumeZoneType):
"""FluidDynamicsVolumeZone type"""

model_type = pd.Field("FluidDynamics", const=True)
model_type = pd.Field("FluidDynamics", alias="modelType", const=True)
reference_frame: Optional[ReferenceFrame] = pd.Field(alias="ReferenceFrame")


Expand Down
2 changes: 1 addition & 1 deletion flow360/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
version
"""
__version__ = "0.2.0b15"
__version__ = "0.2.0b16"
2 changes: 1 addition & 1 deletion tests/test_flow360.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.2.0b15"
assert __version__ == "0.2.0b16"

0 comments on commit 153af65

Please sign in to comment.