Skip to content

Commit

Permalink
handle large missing pieces in seg-y concat
Browse files Browse the repository at this point in the history
  • Loading branch information
tasansal committed Apr 26, 2023
1 parent 193dde7 commit 3f03a58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mdio/converters/mdio.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ def mdio_to_segy( # noqa: C901
axis=tuple(range(1, samples.ndim)),
).compute()

# If whole blocks are missing, remove them from the list.
missing_mask = flat_files == "missing"
flat_files = flat_files[~missing_mask]

final_concat = [output_segy_path] + flat_files.tolist()

if client is not None:
Expand Down

0 comments on commit 3f03a58

Please sign in to comment.