Skip to content

Commit

Permalink
Fixed bug related to import maketrans
Browse files Browse the repository at this point in the history
  • Loading branch information
SaberHQ committed Jul 18, 2019
1 parent 21bae95 commit f900404
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
from time import strftime
from time import sleep
import numpy as np
from string import maketrans

if sys.version_info[0] < 3:
from string import maketrans
trantab = maketrans("T", "U")
else:
trantab = str.maketrans("T", "U")

from sklearn.externals import joblib

try:
Expand All @@ -40,7 +46,6 @@
CONTACT = "[email protected]; [email protected]"

BASES = ['A', 'T', 'C', 'G']
trantab = maketrans("T", "U")


def select_ref_transcript(input_dict):
Expand Down

0 comments on commit f900404

Please sign in to comment.