We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9da6616 commit 243c16eCopy full SHA for 243c16e
1 file changed
src/mdio/ingestion/segy/coordinates.py
@@ -104,7 +104,7 @@ def _get_spatial_coordinate_unit(segy_file_info: SegyFileInfo) -> LengthUnitMode
104
"""Get the coordinate unit from the SEG-Y headers."""
105
measurement_system_code = int(segy_file_info.binary_header_dict[MEASUREMENT_SYSTEM_KEY])
106
107
- if measurement_system_code not in (1, 2):
+ if measurement_system_code not in {s.value for s in SegyMeasurementSystem}:
108
logger.warning(
109
"Unexpected value in coordinate unit (%s) header: %s. Can't extract coordinate unit and will "
110
"ingest without coordinate units.",
0 commit comments