From 47645a58be41931f9261c71387dedbe5c1dfa857 Mon Sep 17 00:00:00 2001 From: tuoping Date: Tue, 1 Jun 2021 09:33:33 +0800 Subject: [PATCH] Fixed a bug in dpgen/auto_test/Lammps.py --- dpgen/auto_test/Lammps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpgen/auto_test/Lammps.py b/dpgen/auto_test/Lammps.py index fd9e85a81..b39211710 100644 --- a/dpgen/auto_test/Lammps.py +++ b/dpgen/auto_test/Lammps.py @@ -17,7 +17,7 @@ def __init__(self, self.inter_type = inter_parameter['type'] self.type_map = inter_parameter['type_map'] self.in_lammps = inter_parameter.get('in_lammps', 'auto') - if self.type_map == 'meam': + if self.inter_type == 'meam': self.model = list(map(os.path.abspath, inter_parameter['model'])) else: self.model = os.path.abspath(inter_parameter['model'])