Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include dict #361

Merged
merged 13 commits into from
Sep 7, 2023
3 changes: 2 additions & 1 deletion schema/definitions/0.8.0/schema/fmu_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@
"polygons",
"cube",
"well",
"points"
"points",
"dictionary"
]
},
"source": {
Expand Down
1 change: 1 addition & 0 deletions src/fmu/dataio/_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def __post_init__(self):
"khproduct": None,
"timeseries": None,
"wellpicks": None,
"parameters": None,
}

STANDARD_TABLE_INDEX_COLUMNS = {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_units/test_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_export_dict_w_meta(globalconfig2, dictionary, request):
name = dictionary
in_dict = request.getfixturevalue(dictionary)
print(f"{name}: {in_dict}")
exd = ExportData(config=globalconfig2)
exd = ExportData(config=globalconfig2, content="parameters")
out_dict, out_meta = read_dict_and_meta(exd.export(in_dict, name=name))
assert in_dict == out_dict
assert_dict_correct(out_dict, out_meta, name)
Expand All @@ -131,7 +131,7 @@ def test_invalid_dict(globalconfig2, drogon_summary, drogon_volumes):
drogon_volumes (pa.Table): a pyarrow table
"""
in_dict = {"volumes": drogon_volumes, "summary": drogon_summary}
exd = ExportData(config=globalconfig2)
exd = ExportData(config=globalconfig2, content="parameters")
with pytest.raises(TypeError) as exc_info:
print(exc_info)
exd.export(in_dict, name="invalid")
Expand Down
Loading