File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import logging
6+ import warnings
67from dataclasses import dataclass
78from pathlib import Path
89from shutil import copyfileobj
@@ -66,7 +67,12 @@ def mdio_spec_to_segy(
6667 Raises:
6768 MDIOMissingVariableError: If MDIO file does not contain SEG-Y headers.
6869 """
69- dataset = open_mdio (input_path , chunks = new_chunks )
70+ # NOTE: the warning analysis and the reason for its suppression are here:
71+ # https://github.com/TGSAI/mdio-python/issues/657
72+ warn = "The specified chunks separate the stored chunks along dimension"
73+ with warnings .catch_warnings ():
74+ warnings .filterwarnings ("ignore" , message = warn , category = UserWarning )
75+ dataset = open_mdio (input_path , chunks = new_chunks )
7076
7177 if "segy_file_header" not in dataset :
7278 msg = (
You can’t perform that action at this time.
0 commit comments