From 7192f9dd82eac9769777cbbfbb0acb6e1c5ac36d Mon Sep 17 00:00:00 2001 From: Raimondas Galvelis Date: Tue, 15 Nov 2022 12:01:54 +0100 Subject: [PATCH] Fix a missing argument for isinstance --- torchmdnet/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchmdnet/models/model.py b/torchmdnet/models/model.py index 2fede80b0..31e3a43a9 100644 --- a/torchmdnet/models/model.py +++ b/torchmdnet/models/model.py @@ -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), (