Skip to content

Commit

Permalink
removed prints
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Dec 27, 2020
1 parent 5781fb1 commit 8150e7b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions src/pygenome/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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


'''
Expand All @@ -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"))
Expand Down Expand Up @@ -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=[]

Expand All @@ -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 )
Expand All @@ -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

Expand All @@ -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.")
2 changes: 1 addition & 1 deletion src/pygenome/_pickle_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8150e7b

Please sign in to comment.