Skip to content

Commit 2af63f0

Browse files
committed
lint and fix 1 bug
1 parent a6e5d60 commit 2af63f0

6 files changed

Lines changed: 7 additions & 25 deletions

‎tests/unit/v1/templates/test_seismic_2d_poststack.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ def test_configuration(self, data_domain: SeismicDataDomain) -> None:
9696

9797
# Verify dataset attributes
9898
attrs = t._load_dataset_attributes()
99-
assert attrs == {
100-
"surveyType": "2D",
101-
"gatherType": "stacked",
102-
}
99+
assert attrs == {"surveyType": "2D", "gatherType": "stacked"}
103100

104101
assert t.default_variable_name == "amplitude"
105102

‎tests/unit/v1/templates/test_seismic_2d_prestack_cdp.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ def test_configuration(self, data_domain: SeismicDataDomain, gather_domain: CdpG
110110

111111
# Verify prestack CDP attributes
112112
attrs = t._load_dataset_attributes()
113-
assert attrs == {
114-
"surveyType": "2D",
115-
"gatherType": "cdp",
116-
}
113+
assert attrs == {"surveyType": "2D", "gatherType": "cdp"}
117114
assert t.default_variable_name == "amplitude"
118115

119116
def test_build_dataset(

‎tests/unit/v1/templates/test_seismic_3d_poststack.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ def test_configuration(self, data_domain: SeismicDataDomain) -> None:
113113

114114
# Verify dataset attributes
115115
attrs = t._load_dataset_attributes()
116-
assert attrs == {
117-
"surveyType": "3D",
118-
"gatherType": "stacked",
119-
}
116+
assert attrs == {"surveyType": "3D", "gatherType": "stacked"}
120117
assert t.default_variable_name == "amplitude"
121118

122119
def test_build_dataset(self, data_domain: SeismicDataDomain, structured_headers: StructuredType) -> None:

‎tests/unit/v1/templates/test_seismic_3d_prestack_cdp.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ def test_configuration(self, data_domain: SeismicDataDomain, gather_domain: CdpG
119119

120120
# Verify prestack CDP attributes
121121
attrs = t._load_dataset_attributes()
122-
assert attrs == {
123-
"surveyType": "3D",
124-
"gatherType": "cdp",
125-
}
122+
assert attrs == {"surveyType": "3D", "gatherType": "cdp"}
126123
assert t.default_variable_name == "amplitude"
127124

128125
def test_build_dataset(

‎tests/unit/v1/templates/test_seismic_3d_prestack_coca.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@ def test_configuration(self, data_domain: SeismicDataDomain) -> None:
131131

132132
# Verify dataset attributes
133133
attrs = t._load_dataset_attributes()
134-
assert attrs == {
135-
"surveyType": "3D",
136-
"gatherType": "cdp_coca",
137-
}
134+
assert attrs == {"surveyType": "3D", "gatherType": "common_offset_common_azimuth"}
138135
assert t.default_variable_name == "amplitude"
139136

140137
def test_build_dataset(self, data_domain: SeismicDataDomain, structured_headers: StructuredType) -> None:
@@ -150,7 +147,7 @@ def test_build_dataset(self, data_domain: SeismicDataDomain, structured_headers:
150147

151148
assert dataset.metadata.name == "Permian Basin 3D CDP Coca Gathers"
152149
assert dataset.metadata.attributes["surveyType"] == "3D"
153-
assert dataset.metadata.attributes["gatherType"] == "cdp_coca"
150+
assert dataset.metadata.attributes["gatherType"] == "common_offset_common_azimuth"
154151

155152
_validate_coordinates_headers_trace_mask(dataset, structured_headers, data_domain)
156153

‎tests/unit/v1/templates/test_seismic_3d_prestack_shot.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,7 @@ def test_configuration(self) -> None:
143143

144144
# Verify prestack shot attributes
145145
attrs = t._load_dataset_attributes()
146-
assert attrs == {
147-
"surveyType": "3D",
148-
"gatherType": "common_shot",
149-
}
146+
assert attrs == {"surveyType": "3D", "gatherType": "common_shot"}
150147

151148
assert t.name == "PreStackShotGathers3DTime"
152149

0 commit comments

Comments
 (0)