Skip to content

Commit

Permalink
Use auto-downloaded weights
Browse files Browse the repository at this point in the history
  • Loading branch information
melihyilmaz authored Sep 22, 2023
1 parent 86630e3 commit 0d312e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions casanovo/casanovo.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def sequence(
to sequence peptides.
"""
output = setup_logging(output, verbosity)
config = setup_model(model, config, output, False)
config, model = setup_model(model, config, output, False)
with ModelRunner(config, model) as runner:
logger.info("Sequencing peptides from:")
for peak_file in peak_path:
Expand Down Expand Up @@ -164,7 +164,7 @@ def evaluate(
such as those provided by MassIVE-KB.
"""
output = setup_logging(output, verbosity)
config = setup_model(model, config, output, False)
config, model = setup_model(model, config, output, False)
with ModelRunner(config, model) as runner:
logger.info("Sequencing and evaluating peptides from:")
for peak_file in annotated_peak_path:
Expand Down Expand Up @@ -378,7 +378,7 @@ def setup_model(
for key, value in config.items():
logger.debug("%s = %s", str(key), str(value))

return config
return config, model


def _get_model_weights() -> str:
Expand Down

0 comments on commit 0d312e6

Please sign in to comment.