Skip to content

Commit

Permalink
fix(configuration): version availability for "STS Cashflow By Cluster…
Browse files Browse the repository at this point in the history
…" variable is v8.8
  • Loading branch information
laurent-laporte-pro committed Apr 12, 2024
1 parent 0192418 commit e4dd506
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion antarest/study/business/thematic_trimming_field_infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ThematicTrimmingFormFields(FormFieldsBaseModel, metaclass=AllOptionalMetac
"sts_inj_by_plant": {"topic": _SHORT_TERM_STORAGES, "path": "STS inj by plant", "default_value": True, "start_version": 860},
"sts_withdrawal_by_plant": {"topic": _SHORT_TERM_STORAGES, "path": "STS withdrawal by plant", "default_value": True, "start_version": 860},
"sts_lvl_by_plant": {"topic": _SHORT_TERM_STORAGES, "path": "STS lvl by plant", "default_value": True, "start_version": 860},
"sts_cashflow_by_cluster": {"topic": _SHORT_TERM_STORAGES, "path": "STS Cashflow By Cluster", "default_value": True, "start_version": 860},
"sts_cashflow_by_cluster": {"topic": _SHORT_TERM_STORAGES, "path": "STS Cashflow By Cluster", "default_value": True, "start_version": 880},
# topic: "Short-Term Storages - Group"
"psp_open_injection": {"topic": _SHORT_TERM_STORAGES_GROUP, "path": "PSP_open_injection", "default_value": True, "start_version": 860},
"psp_open_withdrawal": {"topic": _SHORT_TERM_STORAGES_GROUP, "path": "PSP_open_withdrawal", "default_value": True, "start_version": 860},
Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ v2.16.8 (unreleased)
* **comments:** use a command to update comments on a variant [`#1959`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/1959)
* **outputs (ui):** correct weekly data formatting to support 53-week years [`#1975`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/1975)
* **configuration:** add missing variables in Thematic Trimming for studies in version v8.6 or above [`#1992`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/1992)
* **configuration:** version availability for "STS Cashflow By Cluster" variable is v8.8


v2.16.7 (2024-03-05)
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,6 @@ def test_area_management(client: TestClient, admin_access_token: str, study_id:
"solarPv": True,
"solarRooft": True,
"spilEnrg": True,
"stsCashflowByCluster": True,
"stsInjByPlant": True,
"stsLvlByPlant": True,
"stsWithdrawalByPlant": True,
Expand Down Expand Up @@ -1135,7 +1134,6 @@ def test_area_management(client: TestClient, admin_access_token: str, study_id:
"solarPv": True,
"solarRooft": True,
"spilEnrg": True,
"stsCashflowByCluster": True,
"stsInjByPlant": True,
"stsLvlByPlant": True,
"stsWithdrawalByPlant": True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export interface ThematicTrimmingFormFields {
stsInjByPlant?: boolean;
stsWithdrawalByPlant?: boolean;
stsLvlByPlant?: boolean;
stsCashflowByCluster?: boolean;
pspOpenInjection?: boolean;
pspOpenWithdrawal?: boolean;
pspOpenLevel?: boolean;
Expand Down Expand Up @@ -100,6 +99,8 @@ export interface ThematicTrimmingFormFields {
other5Injection?: boolean;
other5Withdrawal?: boolean;
other5Level?: boolean;
// Study version >= 880
stsCashflowByCluster?: boolean;
}

const keysMap: Record<keyof ThematicTrimmingFormFields, string> = {
Expand Down Expand Up @@ -172,7 +173,6 @@ const keysMap: Record<keyof ThematicTrimmingFormFields, string> = {
stsInjByPlant: "STS INJ BY PLANT",
stsWithdrawalByPlant: "STS WITHDRAWAL BY PLANT",
stsLvlByPlant: "STS LVL BY PLANT",
stsCashflowByCluster: "STS CASHFLOW BY CLUSTER",
pspOpenInjection: "PSP_OPEN_INJECTION",
pspOpenWithdrawal: "PSP_OPEN_WITHDRAWAL",
pspOpenLevel: "PSP_OPEN_LEVEL",
Expand Down Expand Up @@ -200,6 +200,8 @@ const keysMap: Record<keyof ThematicTrimmingFormFields, string> = {
other5Injection: "OTHER5_INJECTION",
other5Withdrawal: "OTHER5_WITHDRAWAL",
other5Level: "OTHER5_LEVEL",
// Study version >= 880
stsCashflowByCluster: "STS CASHFLOW BY CLUSTER",
};

// Allow to support all study versions by using directly the server config
Expand Down

0 comments on commit e4dd506

Please sign in to comment.