Skip to content

Commit a9a49e3

Browse files
committed
ENH: implement structure_depth_fault_surface standard result (fmu-dataio #1228)
1 parent 1f54b1e commit a9a49e3

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

schemas/0.14.0/fmu_results.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@
221221
{
222222
"$ref": "#/$defs/StructureDepthSurfaceStandardResult"
223223
},
224+
{
225+
"$ref": "#/$defs/StructureDepthFaultSurfaceStandardResult"
226+
},
224227
{
225228
"$ref": "#/$defs/StructureTimeSurfaceStandardResult"
226229
},
@@ -8340,6 +8343,32 @@
83408343
"title": "StructureDepthFaultLinesStandardResult",
83418344
"type": "object"
83428345
},
8346+
"StructureDepthFaultSurfaceStandardResult": {
8347+
"description": "The ``standard_result`` field contains information about which standard results this\ndata object represent.\nThis class contains metadata for the 'structure_depth_fault_surface'\nstandard result.",
8348+
"properties": {
8349+
"file_schema": {
8350+
"anyOf": [
8351+
{
8352+
"$ref": "#/$defs/FileSchema"
8353+
},
8354+
{
8355+
"type": "null"
8356+
}
8357+
],
8358+
"default": null
8359+
},
8360+
"name": {
8361+
"const": "structure_depth_fault_surface",
8362+
"title": "Name",
8363+
"type": "string"
8364+
}
8365+
},
8366+
"required": [
8367+
"name"
8368+
],
8369+
"title": "StructureDepthFaultSurfaceStandardResult",
8370+
"type": "object"
8371+
},
83438372
"StructureDepthIsochoreStandardResult": {
83448373
"description": "The ``standard_result`` field contains information about which standard results this\ndata object represent.\nThis class contains metadata for the 'structure_depth_isochore' standard result.",
83458374
"properties": {

src/fmu/datamodels/fmu_results/fmu_results.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class FmuResultsSchema(SchemaBase):
5151
#### 0.14.0
5252
5353
- Correct example name for realization class
54+
- Add new standard result type `StructureDepthFaultSurfaceStandardResult`
5455
5556
#### 0.13.0
5657

src/fmu/datamodels/fmu_results/standard_result.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ class StructureDepthSurfaceStandardResult(StandardResult):
7171
"""The identifying name for the 'structure_depth_surface' standard result."""
7272

7373

74+
class StructureDepthFaultSurfaceStandardResult(StandardResult):
75+
"""
76+
The ``standard_result`` field contains information about which standard results this
77+
data object represent.
78+
This class contains metadata for the 'structure_depth_fault_surface'
79+
standard result.
80+
"""
81+
82+
name: Literal[enums.StandardResultName.structure_depth_fault_surface]
83+
"""The identifying name for the 'structure_depth_fault_surface' standard result."""
84+
85+
7486
class StructureTimeSurfaceStandardResult(StandardResult):
7587
"""
7688
The ``standard_result`` field contains information about which standard results this
@@ -177,6 +189,7 @@ class AnyStandardResult(RootModel):
177189
FieldOutlineStandardResult
178190
| InplaceVolumesStandardResult
179191
| StructureDepthSurfaceStandardResult
192+
| StructureDepthFaultSurfaceStandardResult
180193
| StructureTimeSurfaceStandardResult
181194
| StructureDepthIsochoreStandardResult
182195
| StructureDepthFaultLinesStandardResult

0 commit comments

Comments
 (0)