kim-tools 0.3.3__py3-none-any.whl → 0.3.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kim_tools/__init__.py +1 -1
- kim_tools/ase/core.py +7 -17
- kim_tools/test_driver/core.py +14 -1
- {kim_tools-0.3.3.dist-info → kim_tools-0.3.4.dist-info}/METADATA +2 -2
- {kim_tools-0.3.3.dist-info → kim_tools-0.3.4.dist-info}/RECORD +8 -8
- {kim_tools-0.3.3.dist-info → kim_tools-0.3.4.dist-info}/WHEEL +0 -0
- {kim_tools-0.3.3.dist-info → kim_tools-0.3.4.dist-info}/licenses/LICENSE.CDDL +0 -0
- {kim_tools-0.3.3.dist-info → kim_tools-0.3.4.dist-info}/top_level.txt +0 -0
kim_tools/__init__.py
CHANGED
kim_tools/ase/core.py
CHANGED
@@ -237,23 +237,13 @@ def get_isolated_energy_per_atom(model: Union[str, Calculator], symbol):
|
|
237
237
|
f"or an ASE Calculator. Instead got an object of type {type(model)}."
|
238
238
|
)
|
239
239
|
single_atom.calc = calc
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
logger.warning(msg)
|
248
|
-
print(msg)
|
249
|
-
energy_per_atom = 0.0
|
250
|
-
finally:
|
251
|
-
if hasattr(calc, "clean"):
|
252
|
-
calc.clean()
|
253
|
-
if hasattr(calc, "__del__"):
|
254
|
-
calc.__del__()
|
255
|
-
del single_atom
|
256
|
-
return energy_per_atom
|
240
|
+
energy_per_atom = single_atom.get_potential_energy()
|
241
|
+
if hasattr(calc, "clean"):
|
242
|
+
calc.clean()
|
243
|
+
if hasattr(calc, "__del__"):
|
244
|
+
calc.__del__()
|
245
|
+
del single_atom
|
246
|
+
return energy_per_atom
|
257
247
|
|
258
248
|
|
259
249
|
################################################################################
|
kim_tools/test_driver/core.py
CHANGED
@@ -490,6 +490,13 @@ class KIMTestDriver(ABC):
|
|
490
490
|
the Test Driver
|
491
491
|
"""
|
492
492
|
|
493
|
+
class NonKIMModelError(Exception):
|
494
|
+
"""
|
495
|
+
Raised when a KIM model name is requested but is absent. This is important
|
496
|
+
to handle to inform users that they are trying to run a Test Driver that
|
497
|
+
requires a KIM model (e.g. a LAMMPS TD) with a non-KIM Calculator
|
498
|
+
"""
|
499
|
+
|
493
500
|
def __init__(self, model: Union[str, Calculator]) -> None:
|
494
501
|
"""
|
495
502
|
Args:
|
@@ -690,7 +697,13 @@ class KIMTestDriver(ABC):
|
|
690
697
|
"""
|
691
698
|
Get the KIM model name, if present
|
692
699
|
"""
|
693
|
-
|
700
|
+
if self.__kim_model_name is not None:
|
701
|
+
return self.__kim_model_name
|
702
|
+
else:
|
703
|
+
raise self.NonKIMModelError(
|
704
|
+
"A KIM model name is being requested, but the Test Driver "
|
705
|
+
"is being run with a non-KIM calculator."
|
706
|
+
)
|
694
707
|
|
695
708
|
@property
|
696
709
|
def property_instances(self) -> Dict:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: kim-tools
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.4
|
4
4
|
Summary: Base classes and helper routines for writing KIM Tests
|
5
5
|
Author-email: ilia Nikiforov <nikif002@umn.edu>, Ellad Tadmor <tadmor@umn.edu>, Claire Waters <bwaters@umn.edu>, "Daniel S. Karls" <karl0100umn@gmail.com>, Matt Bierbaum <matt.bierbaum@gmail.com>, Eric Fuemmeler <efuemmel@umn.edu>, Philipp Hoellmer <ph2484@nyu.edu>, Guanming Zhang <gz2241@nyu.edu>, Tom Egg <tje3676@nyu.edu>
|
6
6
|
Maintainer-email: ilia Nikiforov <nikif002@umn.edu>
|
@@ -32,7 +32,7 @@ Dynamic: license-file
|
|
32
32
|
|
33
33
|
# kim-tools
|
34
34
|
|
35
|
-
](https://github.com/openkim/kim-tools/actions/workflows/testing.yml)
|
36
36
|
[](https://kim-tools.readthedocs.io/en/latest/)
|
37
37
|
[](https://pypi.org/project/kim-tools/)
|
38
38
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
kim_tools/__init__.py,sha256=
|
1
|
+
kim_tools/__init__.py,sha256=CIQpbBUyJLgWZum2kUjz-jAOWw54_hO5_hHgtBV2DEM,433
|
2
2
|
kim_tools/kimunits.py,sha256=jOxBv9gRVhxPE6ygAIUxOzCAfPI6tT6sBaF_FNl9m-M,5387
|
3
3
|
kim_tools/aflow_util/__init__.py,sha256=lJnQ8fZCma80QVRQeKvY4MQ87oCWu-9KATV3dKJfpDc,80
|
4
4
|
kim_tools/aflow_util/core.py,sha256=zi69wMcgkcYBTKbc-OvKlMIzUtgphO57yBA8LB7_5wc,77484
|
@@ -2002,7 +2002,7 @@ kim_tools/aflow_util/aflow_prototype_encyclopedia/data/A_tP4_129_ac-001/info.jso
|
|
2002
2002
|
kim_tools/aflow_util/aflow_prototype_encyclopedia/data/A_tP4_136_f-001/info.json,sha256=5_xlFGOov7VoFwzhp7JtltRnWiAFfgpwF5qc3kMSAjQ,1278
|
2003
2003
|
kim_tools/aflow_util/aflow_prototype_encyclopedia/data/A_tP50_134_a2m2n-001/info.json,sha256=K601zsKLpvPLIaK17bEiNGIQJYJDvIby1lIJ3P9Ze6E,1258
|
2004
2004
|
kim_tools/ase/__init__.py,sha256=1i6ko5tNr0VZC3T7hoEzq4fnSU0DdxNpxXcSaWMcJWc,76
|
2005
|
-
kim_tools/ase/core.py,sha256=
|
2005
|
+
kim_tools/ase/core.py,sha256=ByiwAUBZzbhbXyfdnea5XTIbK6LSOUMCOy20_AFgbAQ,30991
|
2006
2006
|
kim_tools/symmetry_util/__init__.py,sha256=uu-ZSUDUTe2P81rkAS3tXverx31s_uZ3wL4SD_dn5aI,86
|
2007
2007
|
kim_tools/symmetry_util/core.py,sha256=HfDy1CwNWUZIkb4cs3ebUDgWjtt4jRSkBKgGEnlkjuI,30888
|
2008
2008
|
kim_tools/symmetry_util/data/possible_primitive_shifts.json,sha256=4OVNgn3NnykgGlYiAcecERmVWiIZFrmP2LZI3ml_Sh0,25010
|
@@ -2012,11 +2012,11 @@ kim_tools/symmetry_util/data/wyck_pos_xform_under_normalizer.json,sha256=6g1YuYh
|
|
2012
2012
|
kim_tools/symmetry_util/data/wyckoff_multiplicities.json,sha256=qG2RPBd_-ejDIfz-E4ZhkHyRpIboxRy7oiXkdDf5Eg8,32270
|
2013
2013
|
kim_tools/symmetry_util/data/wyckoff_sets.json,sha256=f5ZpHKDHo6_JWki1b7KUGoYLlhU-44Qikw_-PtbLssw,9248
|
2014
2014
|
kim_tools/test_driver/__init__.py,sha256=KOiceeZNqkfrgZ66CiRiUdniceDrCmmDXQkOw0wXaCQ,92
|
2015
|
-
kim_tools/test_driver/core.py,sha256=
|
2015
|
+
kim_tools/test_driver/core.py,sha256=Q388GSKFVvwNIMElt4dHmLd_rJOxQeUG0QIbXmrhYHc,89763
|
2016
2016
|
kim_tools/vc/__init__.py,sha256=zXjhxXCKVMLBMXXWYG3if7VOpBnsFrn_RjVpnohDm5c,74
|
2017
2017
|
kim_tools/vc/core.py,sha256=BIjzEExnQAL2S90a_npptRm3ACqAo4fZBtvTDBMWMdw,13963
|
2018
|
-
kim_tools-0.3.
|
2019
|
-
kim_tools-0.3.
|
2020
|
-
kim_tools-0.3.
|
2021
|
-
kim_tools-0.3.
|
2022
|
-
kim_tools-0.3.
|
2018
|
+
kim_tools-0.3.4.dist-info/licenses/LICENSE.CDDL,sha256=I2luEED_SHjuZ01B4rYG-AF_135amL24JpHvZ1Jhqe8,16373
|
2019
|
+
kim_tools-0.3.4.dist-info/METADATA,sha256=SHsn9LcUrsa7Yg8huy7EfOTJ1MT7c0t4z0EMGvzP9YY,2032
|
2020
|
+
kim_tools-0.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
2021
|
+
kim_tools-0.3.4.dist-info/top_level.txt,sha256=w_YCpJ5ERigj9te74ln7k64tqj1VumOzM_s9dsalIWY,10
|
2022
|
+
kim_tools-0.3.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|