Skip to content

Commit

Permalink
ENH: Add fmu.realization.is_reference to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tnatt committed Oct 3, 2024
1 parent 578ec03 commit 26b0b41
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions schema/definitions/0.8.0/schema/fmu_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"fmu.realization.id",
"fmu.realization.name",
"fmu.realization.uuid",
"fmu.realization.is_reference",
"fmu.workflow",
"masterdata",
"source",
Expand Down Expand Up @@ -6137,6 +6138,11 @@
"title": "Id",
"type": "integer"
},
"is_reference": {
"default": false,
"title": "Is Reference",
"type": "boolean"
},
"jobs": {
"anyOf": [
{},
Expand Down
3 changes: 3 additions & 0 deletions src/fmu/dataio/_model/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ class Realization(BaseModel):
"""The universally unique identifier for this realization. It is a hash of
``fmu.case.uuid`` and ``fmu.iteration.uuid`` and ``fmu.realization.id``."""

is_reference: bool = Field(default=False)
"""Flag used to determine if this relization is tagged as a reference."""


class CountryItem(BaseModel):
"""A single country in the ``smda.masterdata.country`` list of countries
Expand Down
1 change: 1 addition & 0 deletions src/fmu/dataio/_model/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def dump() -> dict:
"fmu.realization.id",
"fmu.realization.name",
"fmu.realization.uuid",
"fmu.realization.is_reference",
"fmu.workflow",
"masterdata",
"source",
Expand Down

0 comments on commit 26b0b41

Please sign in to comment.