Skip to content

Commit dbb3ee1

Browse files
authored
Merge pull request #201 from TGSAI/fix/concat_segy_bug
Fix crash when exporting to SEG-Y with missing `axis=0` chunk in `selection_mask`
2 parents 193dde7 + 3f03a58 commit dbb3ee1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mdio/converters/mdio.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ def mdio_to_segy( # noqa: C901
178178
axis=tuple(range(1, samples.ndim)),
179179
).compute()
180180

181+
# If whole blocks are missing, remove them from the list.
182+
missing_mask = flat_files == "missing"
183+
flat_files = flat_files[~missing_mask]
184+
181185
final_concat = [output_segy_path] + flat_files.tolist()
182186

183187
if client is not None:

0 commit comments

Comments
 (0)