Skip to content

Commit 4274561

Browse files
committed
Investigate manual memory management
1 parent 942c27e commit 4274561

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/mdio/converters/segy.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,16 @@ def segy_to_mdio( # noqa: PLR0913, PLR0915
511511
local_time = datetime.fromtimestamp(time.time())
512512
print(f"The livemask was written at time: {local_time.strftime('%H:%M:%S.%f')}")
513513

514+
# Clean up live mask related variables
515+
del live_mask_array
516+
del chunker
517+
del block
518+
del local_coords
519+
del trace_ids
520+
del chunk_indices
521+
import gc
522+
gc.collect()
523+
514524
print(f"Starting trace writing at: {datetime.fromtimestamp(time.time()).strftime('%H:%M:%S.%f')}")
515525

516526
# Write traces

0 commit comments

Comments
 (0)