Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 authored Nov 28, 2023
1 parent f2e3e84 commit e22b9b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/hdmf_zarr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Necessary definitions to avoid parallelization bugs, Inherited from SpikeInterface experience
# see
# https://stackoverflow.com/questions/10117073/how-to-use-initializer-to-set-up-my-multiprocess-pool
# the tricks is : theses 2 variables are global per worker
# the tricks is : these 2 variables are global per worker
# so they are not share in the same process
global _worker_context
global _operation_to_run
Expand All @@ -36,7 +36,7 @@
class ZarrIODataChunkIteratorQueue(deque):
"""
Helper class used by ZarrIO to manage the write for DataChunkIterators
Each queue element must be a tupple of two elements:
Each queue element must be a tuple of two elements:
1) the dataset to write to and 2) the AbstractDataChunkIterator with the data
:param number_of_jobs: The number of jobs used to write the datasets. The default is 1.
:type number_of_jobs: integer
Expand Down Expand Up @@ -192,7 +192,7 @@ def exhaust_queue(self):

results = tqdm(iterable=results, **progress_bar_options)

# exector map must be iterated to deploy commands over jobs
# executor map must be iterated to deploy commands over jobs
for size_in_MB, result in zip(size_in_MB_per_iteration, results):
results.update(n=int(size_in_MB)) # int() to round down for better display
except Exception as exception: # pragma: no cover
Expand All @@ -203,11 +203,11 @@ def exhaust_queue(self):
),
stacklevel=2,
)
# exector map must be iterated to deploy commands over jobs
# executor map must be iterated to deploy commands over jobs
for result in results:
pass
else:
# exector map must be iterated to deploy commands over jobs
# executor map must be iterated to deploy commands over jobs
for result in results:
pass

Expand Down

0 comments on commit e22b9b0

Please sign in to comment.