From 877c60a0f49f991c0566475eb3bcb78a8711b781 Mon Sep 17 00:00:00 2001 From: Tim O'Donnell <timodonnell@gmail.com> Date: Thu, 8 Feb 2018 12:09:01 -0500 Subject: [PATCH] Workaround tqdm issue Add suggested workaround for https://github.com/tqdm/tqdm/issues/481 --- mhcflurry/downloads_command.py | 2 ++ mhcflurry/train_allele_specific_models_command.py | 1 + 2 files changed, 3 insertions(+) diff --git a/mhcflurry/downloads_command.py b/mhcflurry/downloads_command.py index 8dfc5fb6..34403ab7 100644 --- a/mhcflurry/downloads_command.py +++ b/mhcflurry/downloads_command.py @@ -29,6 +29,8 @@ import errno import tarfile from tempfile import mkstemp from tqdm import tqdm +tqdm.monitor_interval = 0 # see https://github.com/tqdm/tqdm/issues/481 + try: from urllib.request import urlretrieve except ImportError: diff --git a/mhcflurry/train_allele_specific_models_command.py b/mhcflurry/train_allele_specific_models_command.py index 30a8ae69..c05ce479 100644 --- a/mhcflurry/train_allele_specific_models_command.py +++ b/mhcflurry/train_allele_specific_models_command.py @@ -15,6 +15,7 @@ import pandas import yaml from mhcnames import normalize_allele_name import tqdm # progress bar +tqdm.monitor_interval = 0 # see https://github.com/tqdm/tqdm/issues/481 from .class1_affinity_predictor import Class1AffinityPredictor from .common import configure_logging, set_keras_backend -- GitLab