Skip to content

Commit

Permalink
Fix issue with --num-models being None
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Nov 14, 2023
1 parent 734539e commit 223e4bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions colabfold/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1680,9 +1680,7 @@ def main():
msa_group = parser.add_argument_group("MSA arguments", "")
msa_group.add_argument(
"--msa-only",
action="store_const",
const=0,
dest="num_models",
action="store_true",
help="Query and store MSAs from the MSA server without structure prediction",
)
msa_group.add_argument(
Expand Down Expand Up @@ -2000,6 +1998,9 @@ def main():
queries, is_complex = get_queries(args.input, args.sort_queries_by)
model_type = set_model_type(is_complex, args.model_type)

if args.msa_only:
args.num_models = 0

if args.num_models > 0:
download_alphafold_params(model_type, data_dir)

Expand Down

0 comments on commit 223e4bf

Please sign in to comment.