Skip to content
Snippets Groups Projects
Commit cbaa17b5 authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

more logging

parent d2ff112b
No related merge requests found
...@@ -171,6 +171,7 @@ def run(argv=sys.argv[1:]): ...@@ -171,6 +171,7 @@ def run(argv=sys.argv[1:]):
predictor = Class1AffinityPredictor() predictor = Class1AffinityPredictor()
if args.train_num_jobs == 1: if args.train_num_jobs == 1:
# Serial run # Serial run
print("Running in serial.")
worker_pool = None worker_pool = None
else: else:
worker_pool = Pool( worker_pool = Pool(
...@@ -267,6 +268,7 @@ def run(argv=sys.argv[1:]): ...@@ -267,6 +268,7 @@ def run(argv=sys.argv[1:]):
if args.calibration_num_jobs == 1: if args.calibration_num_jobs == 1:
# Serial run # Serial run
print("Running in serial.")
worker_pool = None worker_pool = None
results = ( results = (
calibrate_percentile_ranks( calibrate_percentile_ranks(
...@@ -287,7 +289,9 @@ def run(argv=sys.argv[1:]): ...@@ -287,7 +289,9 @@ def run(argv=sys.argv[1:]):
results = worker_pool.imap_unordered( results = worker_pool.imap_unordered(
partial( partial(
calibrate_percentile_ranks, calibrate_percentile_ranks,
predictor=predictor), alleles, chunksize=1) predictor=predictor),
alleles,
chunksize=1)
for result in tqdm.tqdm(results, ascii=True, total=len(alleles)): for result in tqdm.tqdm(results, ascii=True, total=len(alleles)):
predictor.allele_to_percent_rank_transform.update(result) predictor.allele_to_percent_rank_transform.update(result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment