Skip to content

Commit

Permalink
fix: set correct column names in split table metatadata (#132)
Browse files Browse the repository at this point in the history
* fix: set correct column names in split table metatadata

* Update tests
  • Loading branch information
equinor-ruaj authored Jan 24, 2025
1 parent c6b94a1 commit e875bbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fmu/sumo/sim2sumo/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def convert_table_2_sumo_file(datafile, obj, tagname, config):

md5_hex = hashlib.md5(bytestring).hexdigest()
md5_b64 = base64.b64encode(bytes.fromhex(md5_hex)).decode()
chunk_meta["data"]["spec"]["columns"] = columns
chunk_meta["data"]["spec"]["columns"] = table.columns
chunk_meta["data"]["spec"]["num_columns"] = table.num_columns
chunk_meta["data"]["spec"]["num_rows"] = table.num_rows
chunk_meta["data"]["spec"]["size"] = (
Expand Down
2 changes: 1 addition & 1 deletion tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def test_upload_tables_from_simulation_run(
monkeypatch.chdir(scratch_files[0])

disp = Dispatcher(scratch_files[1], "dev")
expected_results = 3
expected_results = 2
tables.upload_tables_from_simulation_run(
REEK_DATA_FILE,
{"summary": {"arrow": True}, "rft": {"arrow": True}},
Expand Down
2 changes: 1 addition & 1 deletion tests/test_with_ert.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_sim2sumo_with_ert(
real0 = ert_run_scratch_files[0]
# ! This changes files in the current directory and deletes parameters.txt
write_ert_config_and_run(real0)
expected_exports = 90
expected_exports = 88
path = f"/objects('{ert_run_case_uuid}')/search"
results = sumo.post(
path,
Expand Down

0 comments on commit e875bbf

Please sign in to comment.