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

Fixes #128

parent 22e72c01
No related branches found
No related tags found
No related merge requests found
......@@ -562,7 +562,10 @@ class Class1AffinityPredictor(object):
"""
random_string = hashlib.sha1(
str(time.time()).encode()).hexdigest()[:16]
return "%s-%d-%s" % (allele.upper(), num, random_string)
return "%s-%d-%s" % (
allele.upper().replace("*", "_").replace(":", "_"),
num,
random_string)
@staticmethod
def weights_path(models_dir, model_name):
......
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