Skip to content

Commit 937317f

Browse files
committed
Updates to get working
1 parent f915e14 commit 937317f

File tree

3 files changed

+3
-38
lines changed

3 files changed

+3
-38
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies = [
2626
"psutil>=7.0.0",
2727
"pydantic>=2.11.9",
2828
"rich>=14.1.0",
29-
"segy @ git+https://github.com/TGSAI/segy.git@easier-access-to-raw-bytes",
29+
"segy @ git+https://github.com/TGSAI/segy.git@fe82079fb463c0923b47227fe38bdc8b6c1ecee5",
3030
"tqdm>=4.67.1",
3131
"universal-pathlib>=0.2.6",
3232
"xarray>=2025.9.1",

tests/unit/test_disaster_recovery_wrapper.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -288,38 +288,3 @@ def test_different_index_types(
288288

289289
assert wrapper.header.size == expected_count
290290

291-
def test_header_pipeline_preservation(self, temp_dir: Path, basic_segy_spec: SegySpec, segy_config: dict) -> None:
292-
"""Test that the wrapper preserves the original header pipeline."""
293-
config_name = segy_config["name"]
294-
endianness = segy_config["endianness"]
295-
data_format = segy_config["data_format"]
296-
297-
segy_path = temp_dir / f"test_pipeline_{config_name}.segy"
298-
299-
# Create test SEGY file
300-
num_traces = 5
301-
samples_per_trace = SAMPLES_PER_TRACE
302-
303-
spec = self.create_test_segy_file(
304-
spec=basic_segy_spec,
305-
num_traces=num_traces,
306-
samples_per_trace=samples_per_trace,
307-
output_path=segy_path,
308-
endianness=endianness,
309-
data_format=data_format,
310-
)
311-
312-
# Load the SEGY file
313-
segy_file = SegyFile(segy_path, spec=spec)
314-
315-
# Store original pipeline transforms count
316-
original_transforms_count = len(segy_file.accessors.header_decode_pipeline.transforms)
317-
318-
# Create wrapper
319-
wrapper = SegyFileTraceDataWrapper(segy_file, 0)
320-
321-
# Verify that the original SEGY file's pipeline was modified (transforms cleared)
322-
assert len(segy_file.accessors.header_decode_pipeline.transforms) == 0
323-
324-
# Verify that the wrapper has its own pipeline with the original transforms
325-
assert len(wrapper._header_pipeline.transforms) == original_transforms_count

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)