Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Open VDS
Commits
4fec8c14
Commit
4fec8c14
authored
Oct 13, 2021
by
Jim King
Committed by
Jørgen Lind
Oct 28, 2021
Browse files
tweak tests
parent
20571b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/tools/SEGYImport/pytests/test_crossline_sorted.py
View file @
4fec8c14
...
...
@@ -99,10 +99,10 @@ def test_coordinate_system(teleport_crossline_executor):
assert
origin
[
0
]
==
pytest
.
approx
(
431990.979266
)
assert
origin
[
1
]
==
pytest
.
approx
(
6348549.7101
)
assert
inline_spacing
[
0
]
==
pytest
.
approx
(
3.021
09
4
)
assert
inline_spacing
[
1
]
==
pytest
.
approx
(
12.1
25
)
assert
crossline_spacing
[
0
]
==
pytest
.
approx
(
-
12.128
862
)
assert
crossline_spacing
[
1
]
==
pytest
.
approx
(
3.02
2056
)
assert
inline_spacing
[
0
]
==
pytest
.
approx
(
3.0214
5
)
assert
inline_spacing
[
1
]
==
pytest
.
approx
(
12.1
3037
)
assert
crossline_spacing
[
0
]
==
pytest
.
approx
(
-
12.128
71
)
assert
crossline_spacing
[
1
]
==
pytest
.
approx
(
3.02
4143
)
def
test_coordinate_system_comparison
(
teleport_crossline_executor
,
teleport_conventional_executor
):
...
...
@@ -180,6 +180,9 @@ def test_samples_comparison(teleport_crossline_executor, teleport_conventional_e
format
=
openvds
.
VolumeDataChannelDescriptor
.
Format
.
Format_R32
,
dimensionsND
=
openvds
.
DimensionsND
.
Dimensions_012
)
assert
len
(
request
.
data
)
==
num_z
*
num_crossline
assert
len
(
request_conv
.
data
)
==
num_z
*
num_crossline
sample_data
=
request
.
data
.
reshape
(
num_crossline
,
num_z
)
sample_data_conv
=
request_conv
.
data
.
reshape
(
num_crossline
,
num_z
)
...
...
@@ -236,6 +239,8 @@ def test_dimensions_and_produce_status(crossline_output_vds,
]
if
dimensions
==
4
:
additional_args
.
append
(
"--prestack"
)
# Prestack file has lots of empty traces? Need to ignore it.
additional_args
.
append
(
"--ignore-warnings"
)
ex
=
construct_crossline_executor
(
segy_filename
,
crossline_output_vds
,
additional_args
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment