1
1
from enum import StrEnum
2
2
from dataclasses import dataclass
3
- from typing import Dict , List , Union
4
3
5
4
6
5
# NOTE:
@@ -88,57 +87,57 @@ class CategorizedResultNames:
88
87
Class to hold categorized result names
89
88
90
89
Attributes:
91
- - volume_names: List [str] - Basic volume names among result names
92
- - calculated_volume_names: List [str] - Calculated volume names among result names (STOIIP_TOTAL, GIIP_TOTAL)
93
- - property_names: List [str] - Property names among result names
90
+ - volume_names: list [str] - Basic volume names among result names
91
+ - calculated_volume_names: list [str] - Calculated volume names among result names (STOIIP_TOTAL, GIIP_TOTAL)
92
+ - property_names: list [str] - Property names among result names
94
93
"""
95
94
96
- volume_names : List [str ]
97
- calculated_volume_names : List [str ]
98
- property_names : List [str ]
95
+ volume_names : list [str ]
96
+ calculated_volume_names : list [str ]
97
+ property_names : list [str ]
99
98
100
99
101
100
@dataclass
102
101
class InplaceVolumetricsIdentifierWithValues :
103
102
"""
104
- Unique values for an identifier column in an inplace volumetrics table
103
+ Unique values for an identifier column in an inplace volumetric table
105
104
106
105
NOTE: Ideally all values should be strings, but it is possible that some values are integers - especially for REGION
107
106
"""
108
107
109
108
identifier : InplaceVolumetricsIdentifier
110
- values : List [ Union [ str , int ]] # List of values: str or int
109
+ values : list [ str | int ] # list of values: str or int
111
110
112
111
113
112
@dataclass
114
113
class InplaceVolumetricsTableDefinition :
115
114
"""Definition of a volumetric table"""
116
115
117
116
table_name : str
118
- identifiers_with_values : List [InplaceVolumetricsIdentifierWithValues ]
119
- result_names : List [str ]
120
- fluid_zones : List [FluidZone ]
117
+ identifiers_with_values : list [InplaceVolumetricsIdentifierWithValues ]
118
+ result_names : list [str ]
119
+ fluid_zones : list [FluidZone ]
121
120
122
121
123
122
@dataclass
124
123
class RepeatedTableColumnData :
125
124
"""Definition of a column with repeated column data"""
126
125
127
126
column_name : str
128
- unique_values : List [str | int ] # ["Valysar", "Therys", "Volon"]
129
- indices : List [int ] # [0, 1, 1, 1, 2, 2, 2]. Length = number of rows in the table
127
+ unique_values : list [str | int ] # ["Valysar", "Therys", "Volon"]
128
+ indices : list [int ] # [0, 1, 1, 1, 2, 2, 2]. Length = number of rows in the table
130
129
131
130
132
131
@dataclass
133
132
class TableColumnData :
134
133
column_name : str
135
- values : List [float ] # Column values Length = number of rows in the table
134
+ values : list [float ] # Column values Length = number of rows in the table
136
135
137
136
138
137
@dataclass
139
138
class TableColumnStatisticalData :
140
139
column_name : str
141
- statistic_values : Dict [Statistic , List [float ]] # Statistics values Length = number of rows in the table
140
+ statistic_values : dict [Statistic , list [float ]] # Statistics values Length = number of rows in the table
142
141
143
142
144
143
@dataclass
@@ -148,10 +147,10 @@ class InplaceVolumetricTableData:
148
147
Contains data for a single fluid zone, e.g. Oil, Gas, Water, or sum of fluid zones
149
148
"""
150
149
151
- # fluid_zones: List [FluidZone] # Oil, Gas, Water or "Oil + Gas", etc.
150
+ # fluid_zones: list [FluidZone] # Oil, Gas, Water or "Oil + Gas", etc.
152
151
fluid_selection_name : str # Oil, Gas, Water or "Oil + Gas", etc.
153
- selector_columns : List [RepeatedTableColumnData ] # Index columns and realizations
154
- result_columns : List [TableColumnData ]
152
+ selector_columns : list [RepeatedTableColumnData ] # Index columns and realizations
153
+ result_columns : list [TableColumnData ]
155
154
156
155
157
156
@dataclass
@@ -163,8 +162,8 @@ class InplaceStatisticalVolumetricTableData:
163
162
"""
164
163
165
164
fluid_selection_name : str # Oil, Gas, Water or "Oil + Gas", etc.
166
- selector_columns : List [RepeatedTableColumnData ] # Index columns and realizations
167
- result_column_statistics : List [TableColumnStatisticalData ]
165
+ selector_columns : list [RepeatedTableColumnData ] # Index columns and realizations
166
+ result_column_statistics : list [TableColumnStatisticalData ]
168
167
169
168
170
169
@dataclass
@@ -175,7 +174,7 @@ class InplaceVolumetricTableDataPerFluidSelection:
175
174
Fluid selection can be single fluid zones, e.g. Oil, Gas, Water, or sum of fluid zones - Oil + Gas + Water
176
175
"""
177
176
178
- table_data_per_fluid_selection : List [InplaceVolumetricTableData ]
177
+ table_data_per_fluid_selection : list [InplaceVolumetricTableData ]
179
178
180
179
181
180
@dataclass
@@ -186,4 +185,4 @@ class InplaceStatisticalVolumetricTableDataPerFluidSelection:
186
185
Fluid selection can be single fluid zones, e.g. Oil, Gas, Water, or sum of fluid zones - Oil + Gas + Water
187
186
"""
188
187
189
- table_data_per_fluid_selection : List [InplaceStatisticalVolumetricTableData ]
188
+ table_data_per_fluid_selection : list [InplaceStatisticalVolumetricTableData ]
0 commit comments