Skip to content

Commit 3f03a58

Browse files
committed
handle large missing pieces in seg-y concat
1 parent 193dde7 commit 3f03a58

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)