Skip to content

Commit

Permalink
Use scorer.load()
Browse files Browse the repository at this point in the history
  • Loading branch information
mwojcikowski committed Nov 17, 2016
1 parent 16e5987 commit 3c1b889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/oddt_cli
Expand Up @@ -43,9 +43,9 @@ import six
from os.path import isfile
from ast import literal_eval
import argparse
import joblib

import oddt
from oddt.scoring import scorer


def main():
Expand Down Expand Up @@ -189,7 +189,7 @@ def main():

for score_file in args.score_file:
if isfile(score_file): # load pickle
sf = joblib.load(score_file)
sf = scorer.load(score_file)
pipeline.score(sf, receptor)
else:
raise IOError('Could not read pickle file %s' % score_file)
Expand Down

0 comments on commit 3c1b889

Please sign in to comment.