-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use yaml model in requested pressure test
- Loading branch information
Showing
14 changed files
with
370 additions
and
1,520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,159 changes: 0 additions & 1,159 deletions
1,159
src/libecalc/fixtures/cases/all_energy_usage_models/all_models_dto.py
This file was deleted.
Oops, something went wrong.
288 changes: 0 additions & 288 deletions
288
src/libecalc/fixtures/cases/all_energy_usage_models/conftest.py
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/libecalc/fixtures/cases/compressor_systems_and_compressor_train_temporal/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
from libecalc.fixtures import YamlCase, YamlCaseLoader | ||
|
||
|
||
@pytest.fixture | ||
def compressor_systems_and_compressor_train_temporal() -> YamlCase: | ||
return YamlCaseLoader.load( | ||
case_path=Path(__file__).parent / "data", | ||
main_file="root_model.yaml", | ||
resource_names=[ | ||
"predefined_compressor_chart_curves.csv", | ||
"genset.csv", | ||
"compressor_sampled_1d.csv", | ||
"base_profile.csv", | ||
"flare.csv", | ||
], | ||
) |
5 changes: 5 additions & 0 deletions
5
...alc/fixtures/cases/compressor_systems_and_compressor_train_temporal/data/base_profile.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DATE,OIL_PROD,WATER_PROD,GAS_PROD,WATER_INJ,GAS_LIFT,REGULARITY,POWERLOSS_CONSTANT | ||
01.01.2017,5016,23410,6070485,31977,60704.85,1,0.00 | ||
01.01.2018,4092,24920,4744704,28750,60704.85,1,0.00 | ||
01.01.2019,3483,25807,5334699,29128,60704.85,1,0.024 | ||
01.01.2020,3051,23196,5676338,25270,60704.85,0,0.04 |
7 changes: 7 additions & 0 deletions
7
...res/cases/compressor_systems_and_compressor_train_temporal/data/compressor_sampled_1d.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RATE,FUEL,POWER | ||
0,0,0 | ||
1000000,10000,1.0 | ||
2000000,11000,2.0 | ||
3000000,12000,3.0 | ||
4000000,13000,4.0 | ||
|
5 changes: 5 additions & 0 deletions
5
src/libecalc/fixtures/cases/compressor_systems_and_compressor_train_temporal/data/flare.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DATE, FLARE_RATE, METHANE_RATE | ||
01.01.2017,10000.0, 3.0 | ||
01.01.2018,10000.0, 3.0 | ||
01.01.2019,14000.0, 6.0 | ||
01.01.2020,14000.0, 6.0 |
Oops, something went wrong.