From 8150e7b313e5d3fdebcc23b559bdf0273a780b37 Mon Sep 17 00:00:00 2001 From: BjornFJohansson Date: Sun, 27 Dec 2020 23:35:11 +0000 Subject: [PATCH] removed prints --- src/pygenome/__init__.py | 28 ++++++++++++++-------------- src/pygenome/_pickle_genes.py | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/pygenome/__init__.py b/src/pygenome/__init__.py index a80deb6..d9cf7a6 100644 --- a/src/pygenome/__init__.py +++ b/src/pygenome/__init__.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +import time as _time import os as _os import sys as _sys import subprocess as _subprocess @@ -11,11 +12,13 @@ import prettytable as _prettytable import shutil as _shutil import zipfile as _zipfile +import urllib as _urllib from pygenome._pretty import pretty_str as _pretty_str from pkg_resources import resource_filename as _resource_filename -from pygenome import _version +from pygenome._data import _data_urls +from pygenome import _version ''' @@ -42,7 +45,7 @@ __version__ = _version.version del _version -_sys.modules.pop("pygenome._version", None) +#_sys.modules.pop("pygenome._version", None) # create config directory _os.environ["pygenome_config_dir"] = _os.getenv("pygenome_config_dir", _appdirs.user_config_dir("pygenome")) @@ -187,8 +190,7 @@ def get_env(): if not _os.path.isdir( data_dir ): raise -from pygenome._data import _data_urls -import urllib as _urllib + _missing_files=[] @@ -198,8 +200,6 @@ def get_env(): _logger.warning("file %s missing", _file_) _missing_files.append(_file_) -import time as _time -import os as _os if _missing_files: _shutil.copy( _resource_filename("pygenome", "Saccharomyces_cerevisiae.zip"), data_dir ) @@ -211,15 +211,15 @@ def get_env(): zf.close() if not _os.path.exists(_os.path.join(data_dir, "primers.pickle")): - print("pickle primers start.") + #print("pickle primers start.") from pygenome._pickle_primers import pickle_primers pickle_primers() - print("pickle primers done.") + #print("pickle primers done.") if not _os.path.exists(_os.path.join(data_dir, "not_done.pickle")): - print("pickle primers.") + #print("pickle primers.") from pygenome._pickle_primers import pickle_orfs_not_deleted pickle_orfs_not_deleted() - print("pickle primers done.") + #print("pickle primers done.") _do_pickle_lists = False @@ -237,12 +237,12 @@ def get_env(): if _do_pickle_lists: - print("pickle lists start.") + #print("pickle lists start.") from pygenome._pickle_lists import _pickle_lists _pickle_lists() - print("pickle lists done.") + #print("pickle lists done.") if not _os.path.exists(_os.path.join(data_dir,"stdgene.pickle")) or not _os.path.exists(_os.path.join(data_dir,"sysgene.pickle")): - print("pickle locus list start.") + #print("pickle locus list start.") from pygenome._pickle_genes import _pickle_genes _pickle_genes() - print("pickle locus list done.") + #print("pickle locus list done.") diff --git a/src/pygenome/_pickle_genes.py b/src/pygenome/_pickle_genes.py index f0ad689..01ff024 100644 --- a/src/pygenome/_pickle_genes.py +++ b/src/pygenome/_pickle_genes.py @@ -30,7 +30,7 @@ def _pickle_genes(): for _f in _feature_list: sysgene[_f] = Gene(_f) - print("Pickle standard gene names.") + #print("Pickle standard gene names.") for _f,_g in list(_standard_to_systematic.items()): stdgene[_f] = Gene(_g)