Skip to content

Commit 8e73db1

Browse files
committed
chore: require temperature and pressure in inlet stream
1 parent e30777a commit 8e73db1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/libecalc/presentation/yaml/yaml_types/streams/yaml_inlet_stream.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from pydantic import ConfigDict, Field, model_validator
55

6-
from ecalc_neqsim_wrapper.thermo import STANDARD_PRESSURE_BARA, STANDARD_TEMPERATURE_KELVIN
76
from libecalc.common.utils.rates import RateType
87
from libecalc.presentation.yaml.yaml_types import YamlBase
98
from libecalc.presentation.yaml.yaml_types.components.yaml_expression_type import YamlExpressionType
@@ -75,14 +74,14 @@ class YamlInletStream(YamlBase):
7574
)
7675

7776
temperature: YamlExpressionType = Field(
78-
STANDARD_TEMPERATURE_KELVIN,
77+
...,
7978
title="TEMPERATURE",
80-
description="Temperature in K. Optional; defaults to standard temperature if omitted.",
79+
description="Temperature in K.",
8180
)
8281
pressure: YamlExpressionType = Field(
83-
STANDARD_PRESSURE_BARA,
82+
...,
8483
title="PRESSURE",
85-
description="Pressure in Pa. Optional; defaults to standard pressure if omitted.",
84+
description="Pressure in Bara",
8685
)
8786

8887
rate: YamlInletStreamRate = Field(

0 commit comments

Comments
 (0)