Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Feb 25, 2025
1 parent cb2674f commit 5364104
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/icechunk-python/parallel.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ with ProcessPoolExecutor() as executor:
executor.submit(write_timestamp, itime=i, session=session)
for i in range(ds.sizes["time"])
]
# grab the Session objects from each individual write task
sessions = [f.result() for f in futures]
# grab the Session objects from each individual write task
sessions = [f.result() for f in futures]

# manually merge the remote sessions in to the local session
session = merge_sessions(session, *sessions)
Expand Down
2 changes: 2 additions & 0 deletions icechunk-python/examples/mpwrite.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# An example of using multiprocessing to write to an Icechunk dataset

import tempfile
from concurrent.futures import ProcessPoolExecutor

Expand Down

0 comments on commit 5364104

Please sign in to comment.