Skip to content

Commit 05fd32a

Browse files
committed
Update control flow environment variable
1 parent 5b7e8ce commit 05fd32a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/mdio/converters/segy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def segy_to_mdio( # noqa PLR0913
530530
segy_file_info = get_segy_file_info(segy_file_kwargs)
531531

532532
# Only calculate CRC32C when raw headers are enabled
533-
calculate_checksum = os.getenv("MDIO__IMPORT__RAW_HEADERS") in ("1", "true", "yes", "on")
533+
calculate_checksum = os.getenv("MDIO__IMPORT__DO_CRC32C") in ("1", "true", "yes", "on")
534534

535535
segy_dimensions, segy_headers, trace_data_crc32c = _scan_for_headers(
536536
segy_file_kwargs,

tests/integration/test_crc32c_checksum.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def test_ingestion_stores_correct_crc32c_for_all_configurations(
7171
"""Test that CRC32C checksums are correctly stored for synthetic files from masked export tests."""
7272
# Enable checksum calculation via environment variable
7373
monkeypatch.setenv("MDIO__IMPORT__RAW_HEADERS", "true")
74+
monkeypatch.setenv("MDIO__IMPORT__DO_CRC32C", "true")
7475

7576
grid_conf, segy_factory_conf, segy_to_mdio_conf, _ = test_conf
7677

0 commit comments

Comments
 (0)