File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 65
65
python -m bio2zarr vcf2zarr dencode-partition sample.vcz 0
66
66
python -m bio2zarr vcf2zarr dencode-partition sample.vcz 1
67
67
python -m bio2zarr vcf2zarr dencode-partition sample.vcz 2
68
- python -m bio2zarr vcf2zarr dencode-finalise sample.vcz -f
68
+ python -m bio2zarr vcf2zarr dencode-finalise sample.vcz
69
69
- name : Run tests
70
70
run : |
71
71
pytest --cov=bio2zarr
Original file line number Diff line number Diff line change 22
22
23
23
numcodecs .blosc .use_threads = False
24
24
25
- # By default Tqdm creates a multiprocessing Lock to synchronise across processes,
26
- # which seems to cause some problems with leaked semaphores on certain combinations
27
- # of Mac and Python versions. We only access tqdm from the main process though,
28
- # so we don't need it and can override with a simpler threading Lock.
29
- # NOTE: this gets set multiple times to different locks as subprocesses are
30
- # spawned, but it doesn't matter because the only tqdm instance that is
31
- # used is the one in the main process.
32
- tqdm .tqdm .set_lock (threading .RLock ())
33
-
34
25
35
26
def display_number (x ):
36
27
ret = "n/a"
@@ -207,8 +198,11 @@ class ProgressConfig:
207
198
208
199
209
200
def update_progress (inc ):
210
- with _progress_counter .get_lock ():
211
- _progress_counter .value += inc
201
+ # If the _progress_counter has not been set we are working in a
202
+ # synchronous non-progress tracking context
203
+ if _progress_counter is not None :
204
+ with _progress_counter .get_lock ():
205
+ _progress_counter .value += inc
212
206
213
207
214
208
def get_progress ():
You can’t perform that action at this time.
0 commit comments