Skip to content

Commit

Permalink
Merge pull request #151 from raimis/fix_2
Browse files Browse the repository at this point in the history
Fix a missing argument for isinstance
  • Loading branch information
Raimondas Galvelis authored Nov 15, 2022
2 parents 9e0fef3 + 7192f9d commit df7c906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmdnet/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def create_prior_models(args, dataset=None):
prior_args.append({})
if 'prior_args' in args:
prior_args = args['prior_args']
if not isinstance(prior_args):
if not isinstance(prior_args, list):
prior_args = [prior_args]
for name, arg in zip(prior_names, prior_args):
assert hasattr(priors, name), (
Expand Down

0 comments on commit df7c906

Please sign in to comment.