Skip to content

Commit

Permalink
refactor: set defaults in yaml
Browse files Browse the repository at this point in the history
Set defaults for hydrocarbon export and regularity
  • Loading branch information
jsolaas committed Oct 22, 2024
1 parent 7f808da commit cdf3864
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class YamlInstallation(YamlBase):
)
category: InstallationUserDefinedCategoryType = CategoryField(None)
hydrocarbon_export: YamlTemporalModel[YamlExpressionType] = Field(
None,
0,
title="HCEXPORT",
description="Defines the export of hydrocarbons as number of oil equivalents in Sm3.\n\n$ECALC_DOCS_KEYWORDS_URL/HCEXPORT",
alias="HCEXPORT",
Expand All @@ -50,7 +50,7 @@ class YamlInstallation(YamlBase):
description="Main fuel type for installation." "\n\n$ECALC_DOCS_KEYWORDS_URL/FUEL",
)
regularity: YamlTemporalModel[YamlExpressionType] = Field(
None,
1,
title="REGULARITY",
description="Regularity of the installation can be specified by a single number or as an expression. USE WITH CARE.\n\n$ECALC_DOCS_KEYWORDS_URL/REGULARITY",
)
Expand Down

0 comments on commit cdf3864

Please sign in to comment.