Skip to content

Commit

Permalink
Anonymise test data
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sol committed Aug 13, 2024
1 parent 45eaeb4 commit cc01300
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 77 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- name: summary observations
type: summary
default_error: 10%
observation: snorre_smry_observations.csv
observation: afield_smry_observations.csv

- name: rft observations
type: rft
Expand Down
36 changes: 36 additions & 0 deletions tests/genertobs_unstable/data/afield/afield_smry_observations.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
VALUE,DATE,KEY
264.0,2005-04-01,WBHP:Q-3P
290.0,2007-05-30,WBHP:Q-3P
289.0,2011-07-04,WBHP:Q-3P
280.0,2013-03-01,WBHP:Q-3P
255.0,2015-05-04,WBHP:Q-3P
264.0,2017-09-09,WBHP:Q-3P
257.0,2018-09-27,WBHP:Q-3P
9601645.0,2000-05-01,WGPT:Q-39P
35505872.0,2000-09-01,WGPT:Q-39P
48383616.0,2001-01-01,WGPT:Q-39P
65746592.0,2001-05-01,WGPT:Q-39P
79736152.0,2001-09-01,WGPT:Q-39P
92134936.0,2002-01-01,WGPT:Q-39P
100446024.0,2002-05-01,WGPT:Q-39P
102495088.0,2002-09-01,WGPT:Q-39P
110328808.0,2003-01-01,WGPT:Q-39P
113082552.0,2003-05-01,WGPT:Q-39P
117732840.0,2003-09-01,WGPT:Q-39P
119566240.0,2004-01-01,WGPT:Q-39P
124238296.0,2004-05-01,WGPT:Q-39P
129655112.0,2004-09-01,WGPT:Q-39P
132931928.0,2005-01-01,WGPT:Q-39P
133800216.0,2006-05-01,WGPT:Q-39P
136486176.0,2006-09-01,WGPT:Q-39P
137112672.0,2007-01-01,WGPT:Q-39P
137605200.0,2007-05-01,WGPT:Q-39P
138011184.0,2007-09-01,WGPT:Q-39P
138485376.0,2012-09-01,WGPT:Q-39P
138827776.0,2013-01-01,WGPT:Q-39P
11493.68,2021-01-01,WOPT:Y-2HP
30648.73,2021-05-01,WOPT:Y-2HP
54489.39,2021-09-01,WOPT:Y-2HP
64057.64,2022-01-01,WOPT:Y-2HP
82170.36,2022-05-01,WOPT:Y-2HP
99219.46,2022-09-01,WOPT:Y-2HP
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ masterdata:
- identifier: Norway
uuid: ad214d85-8a1d-19da-e053-c918a4889309
discovery:
- short_identifier: SNORRE
- short_identifier: AFIELD
uuid: ad214d89-af9b-19da-e053-c918a4889309
field:
- identifier: SNORRE
- identifier: AFIELD
uuid: ad214d87-901d-19da-e053-c918a4889309
coordinate_system:
identifier: ST_ED50_UTM31N_P23031_T1311
uuid: ad214d85-da74-19da-e053-c918a4889309
stratigraphic_column:
identifier: Snorre Seq Strat 2004
identifier: Afield 2004
uuid: ad215071-c52b-2e4b-e053-c918a4881b5c
access:
asset:
name: Snorre
name: Afield
model:
name: ff
revision: 2024
23 changes: 23 additions & 0 deletions tests/genertobs_unstable/data/afield/well_aliases.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
RMS_NAME ECLIPSE_NAME
42_4-8_A R_8A
42_4-7_S R_7S
42_4-B-1_H R_B1H
42_4-B-1_HT2 R_B1HT2
42_4-B-2_AH R_B2AH
42_7-S-7 R_S7
42_7-T-1_H R_T1H
42_7-T-2_H R_T2H
42_7-T-3_H R_T3H
42_7-T-4_H R_T4H
42_7-W-1_H R_W1H
42_7-W-1_HT2 R_W1HT2
42_7-W-2_H R_W2H
42_7-W-3_H R_W3H
42_7-W-4_H R_W4H
42_7-A-1_H R_A1H
42_7-A-2_H R_A2H
42_7-A-3_H R_A3H
42_7-A-3_HT2 R_A3HT2
42_7-A-3_HT3 R_A3HT3
42_7-A-4_H R_A4H
42_7-A-4_HT2 R_A4HT2
Binary file not shown.
36 changes: 0 additions & 36 deletions tests/genertobs_unstable/data/snorre/snorre_smry_observations.csv

This file was deleted.

Empty file.
Binary file not shown.
23 changes: 0 additions & 23 deletions tests/genertobs_unstable/data/snorre/well_aliases.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
read_yaml_config,
)

SNORRE_FOLDER = Path(__file__).parent / "data/snorre"
AFIELD = Path(__file__).parent / "data/afield"


def run_command(arguments):
Expand All @@ -27,29 +27,29 @@ def run_command(arguments):


def test_generate_data(tmp_path, monkeypatch):
sn_tmp = tmp_path / "snorre"
copytree(SNORRE_FOLDER, sn_tmp)
obs_name = "snorre_observations"
monkeypatch.chdir(sn_tmp)
af_tmp = tmp_path / "afield"
copytree(AFIELD, af_tmp)
obs_name = "afield_observations"
monkeypatch.chdir(af_tmp)

genert_config = sn_tmp / "snorre_observations.yml"
genert_config = af_tmp / "afield_observations.yml"

config = read_yaml_config(genert_config)
print("\n", config)
data = generate_data_from_config(config, sn_tmp)
data = generate_data_from_config(config, af_tmp)
print(data)


def test_command_line(tmp_path, monkeypatch):
sn_tmp = tmp_path / "snorre"
copytree(SNORRE_FOLDER, sn_tmp)
obs_name = "snorre_observations"
monkeypatch.chdir(sn_tmp)
genert_config = sn_tmp / "snorre_observations.yml"
af_tmp = tmp_path / "afield"
copytree(AFIELD, af_tmp)
obs_name = "afield_observations"
monkeypatch.chdir(af_tmp)
genert_config = af_tmp / "afield_observations.yml"

arguments = ["genertobs_unstable", genert_config]
run_command(arguments)
obs_out = sn_tmp / obs_name
obs_out = af_tmp / obs_name
assert obs_out.exists(), f"{obs_out} does not exist"
ert_obs_file = obs_out / "ert_observations.obs"
obs_str = ert_obs_file.read_text()
Expand Down

0 comments on commit cc01300

Please sign in to comment.