Skip to content

Commit

Permalink
ENH: Set Realization and Iteration access without ssdl
Browse files Browse the repository at this point in the history
  • Loading branch information
equinor-ruaj committed Sep 20, 2024
1 parent a565fa0 commit 369994a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
44 changes: 23 additions & 21 deletions schema/definitions/0.8.0/schema/fmu_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,21 +419,6 @@
"title": "Case",
"type": "object"
},
"CaseContext": {
"properties": {
"stage": {
"const": "case",
"default": "case",
"enum": [
"case"
],
"title": "Stage",
"type": "string"
}
},
"title": "CaseContext",
"type": "object"
},
"CaseMetadata": {
"description": "The FMU metadata model for an FMU case.\n\nA case represent a set of iterations that belong together, either by being part of\nthe same run (i.e. history matching) or by being placed together by the user,\ncorresponding to /scratch/<asset>/<user>/<my case name>/.",
"properties": {
Expand Down Expand Up @@ -1144,13 +1129,13 @@
"type": "string"
},
"FMUIteration": {
"description": "The ``fmu`` block contains all attributes specific to FMU. The idea is that the FMU\nresults data model can be applied to data from *other* sources - in which the\nfmu-specific stuff may not make sense or be applicable.\nThis is a specialization of the FMU block for Iteration objects.",
"description": "The ``fmu`` block contains all attributes specific to FMU. The idea is that the FMU\nresults data model can be applied to data from *other* sources - in which the\nfmu-specific stuff may not make sense or be applicable.\nThis is a specialization of the FMU block for ``iteration`` objects.",
"properties": {
"case": {
"$ref": "#/$defs/Case"
},
"context": {
"$ref": "#/$defs/CaseContext"
"$ref": "#/$defs/IterationContext"
},
"iteration": {
"$ref": "#/$defs/Iteration"
Expand All @@ -1169,13 +1154,13 @@
"type": "object"
},
"FMURealization": {
"description": "The ``fmu`` block contains all attributes specific to FMU. The idea is that the FMU\nresults data model can be applied to data from *other* sources - in which the\nfmu-specific stuff may not make sense or be applicable.\nThis is a specialization of the FMU block for Realization objects.",
"description": "The ``fmu`` block contains all attributes specific to FMU. The idea is that the FMU\nresults data model can be applied to data from *other* sources - in which the\nfmu-specific stuff may not make sense or be applicable.\nThis is a specialization of the FMU block for ``realization`` objects.",
"properties": {
"case": {
"$ref": "#/$defs/Case"
},
"context": {
"$ref": "#/$defs/IterationContext"
"$ref": "#/$defs/RealizationContext"
},
"iteration": {
"$ref": "#/$defs/Iteration"
Expand Down Expand Up @@ -3356,6 +3341,7 @@
"type": "object"
},
"IterationContext": {
"description": "The ``fmu.context`` block contains the FMU context in which this data object\nwas produced. Here ``stage`` is required to be ``iteration``.",
"properties": {
"stage": {
"const": "iteration",
Expand All @@ -3374,7 +3360,7 @@
"description": "The FMU metadata model for an FMU Iteration.\n\nAn object representing a single Iteration of a specific case.",
"properties": {
"access": {
"$ref": "#/$defs/SsdlAccess"
"$ref": "#/$defs/Access"
},
"class": {
"const": "iteration",
Expand Down Expand Up @@ -6195,11 +6181,27 @@
"title": "Realization",
"type": "object"
},
"RealizationContext": {
"description": "The ``fmu.context`` block contains the FMU context in which this data object\nwas produced. Here ``stage`` is required to be ``realization``.",
"properties": {
"stage": {
"const": "realization",
"default": "realization",
"enum": [
"realization"
],
"title": "Stage",
"type": "string"
}
},
"title": "RealizationContext",
"type": "object"
},
"RealizationMetadata": {
"description": "The FMU metadata model for an FMU Realization.\n\nAn object representing a single Realization of a specific Iteration.",
"properties": {
"access": {
"$ref": "#/$defs/SsdlAccess"
"$ref": "#/$defs/Access"
},
"class": {
"const": "realization",
Expand Down
8 changes: 4 additions & 4 deletions src/fmu/dataio/_model/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class IterationMetadata(MetadataBase):
"""The ``fmu`` block contains all attributes specific to FMU.
See :class:`FMU`."""

access: SsdlAccess
access: Access
"""The ``access`` block contains information related to access control for
this data object. See :class:`SsdlAccess`."""
this data object. See :class:`Access`."""


class RealizationMetadata(MetadataBase):
Expand All @@ -105,9 +105,9 @@ class RealizationMetadata(MetadataBase):
"""The ``fmu`` block contains all attributes specific to FMU.
See :class:`FMU`."""

access: SsdlAccess
access: Access
"""The ``access`` block contains information related to access control for
this data object. See :class:`SsdlAccess`."""
this data object. See :class:`Access`."""


class ObjectMetadata(MetadataBase):
Expand Down

0 comments on commit 369994a

Please sign in to comment.