kim-tools 0.3.10__py3-none-any.whl → 0.3.11__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 CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.3.10"
1
+ __version__ = "0.3.11"
2
2
 
3
3
  from .aflow_util import *
4
4
  from .aflow_util import __all__ as aflow_all
@@ -1642,9 +1642,21 @@ class AFLOW:
1642
1642
  ]
1643
1643
 
1644
1644
  if match_library_proto:
1645
- library_prototype_label, short_name = (
1646
- self.get_library_prototype_label_and_shortname_from_atoms(atoms)
1647
- )
1645
+ try:
1646
+ library_prototype_label, short_name = (
1647
+ self.get_library_prototype_label_and_shortname_from_atoms(atoms)
1648
+ )
1649
+ except subprocess.CalledProcessError:
1650
+ library_prototype_label = None
1651
+ short_name = None
1652
+ msg = (
1653
+ "WARNING: aflow --compare2prototypes returned error, skipping "
1654
+ "library matching"
1655
+ )
1656
+ print()
1657
+ print(msg)
1658
+ print()
1659
+ logger.warning(msg)
1648
1660
 
1649
1661
  # NOTE: Because of below, this only works if the provided prototype label is
1650
1662
  # correctly alphabetized. Change this?
@@ -777,8 +777,9 @@ class KIMTestDriver(ABC):
777
777
  Args:
778
778
  filename: path to write the file
779
779
  """
780
- kim_property_dump(self._get_serialized_property_instances(), filename)
781
780
  filename_parent = Path(filename).parent.resolve()
781
+ os.makedirs(filename_parent, exist_ok=True)
782
+ kim_property_dump(self._get_serialized_property_instances(), filename)
782
783
  if filename_parent != Path("output").resolve():
783
784
  for file_in_output in glob.glob("output/*"):
784
785
  file_in_output_name = str(Path(file_in_output).name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kim-tools
3
- Version: 0.3.10
3
+ Version: 0.3.11
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>
@@ -1,7 +1,7 @@
1
- kim_tools/__init__.py,sha256=JLUazZQCLoZytIvOaYLlsNL_HwIINUM3Qe4Z3ljGkoI,434
1
+ kim_tools/__init__.py,sha256=YZdzUiZNlEczGQLTPVRxzz5-jGxgJTEaeAK_p-oJu4o,434
2
2
  kim_tools/kimunits.py,sha256=jOxBv9gRVhxPE6ygAIUxOzCAfPI6tT6sBaF_FNl9m-M,5387
3
3
  kim_tools/aflow_util/__init__.py,sha256=lJnQ8fZCma80QVRQeKvY4MQ87oCWu-9KATV3dKJfpDc,80
4
- kim_tools/aflow_util/core.py,sha256=PM-ww2zoZXksGHbyPKW54v8r1bignJvFhDByx7Qm1ac,80837
4
+ kim_tools/aflow_util/core.py,sha256=mMS2r9ayJJ6ApOFTAIkCZ72Dg3g1EnREbrqe2YEipMo,81273
5
5
  kim_tools/aflow_util/aflow_prototype_encyclopedia/data/A108B24C11D24_cP334_222_h4i_i_bf_i-001/info.json,sha256=IsFiO9X2Ko7yoq2QkDurUVP7k1BE4WFgblu7oxl6iZs,2013
6
6
  kim_tools/aflow_util/aflow_prototype_encyclopedia/data/A10B11_tI84_139_dehim_eh2n-001/info.json,sha256=f1EdtouuSL2y9NNw40Rvz2J9ZZcsqQBcyEmlHj6XoW8,1186
7
7
  kim_tools/aflow_util/aflow_prototype_encyclopedia/data/A10B2C_hP39_171_5c_c_a-001/info.json,sha256=vD1xjZKWShL0E6XNsSlmIhilGcGNefl56oQDLQlHO1M,1596
@@ -2023,11 +2023,11 @@ kim_tools/symmetry_util/data/wyck_pos_xform_under_normalizer.json,sha256=6g1YuYh
2023
2023
  kim_tools/symmetry_util/data/wyckoff_multiplicities.json,sha256=qG2RPBd_-ejDIfz-E4ZhkHyRpIboxRy7oiXkdDf5Eg8,32270
2024
2024
  kim_tools/symmetry_util/data/wyckoff_sets.json,sha256=f5ZpHKDHo6_JWki1b7KUGoYLlhU-44Qikw_-PtbLssw,9248
2025
2025
  kim_tools/test_driver/__init__.py,sha256=KOiceeZNqkfrgZ66CiRiUdniceDrCmmDXQkOw0wXaCQ,92
2026
- kim_tools/test_driver/core.py,sha256=r7I4DXswo-f9Fl2aAwf0pBbRFnVk70Pyq9-mMlKGpaI,99055
2026
+ kim_tools/test_driver/core.py,sha256=ZHS26S8-HxCPTDhv6h6WZ2x7pDQMTu6G1bWD4rPvoz8,99107
2027
2027
  kim_tools/vc/__init__.py,sha256=zXjhxXCKVMLBMXXWYG3if7VOpBnsFrn_RjVpnohDm5c,74
2028
2028
  kim_tools/vc/core.py,sha256=BIjzEExnQAL2S90a_npptRm3ACqAo4fZBtvTDBMWMdw,13963
2029
- kim_tools-0.3.10.dist-info/licenses/LICENSE.CDDL,sha256=I2luEED_SHjuZ01B4rYG-AF_135amL24JpHvZ1Jhqe8,16373
2030
- kim_tools-0.3.10.dist-info/METADATA,sha256=Xkz5rrE_JMZpWPaQxRPJKoWH0CNolsnlgiGm32-FYws,2033
2031
- kim_tools-0.3.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
2032
- kim_tools-0.3.10.dist-info/top_level.txt,sha256=w_YCpJ5ERigj9te74ln7k64tqj1VumOzM_s9dsalIWY,10
2033
- kim_tools-0.3.10.dist-info/RECORD,,
2029
+ kim_tools-0.3.11.dist-info/licenses/LICENSE.CDDL,sha256=I2luEED_SHjuZ01B4rYG-AF_135amL24JpHvZ1Jhqe8,16373
2030
+ kim_tools-0.3.11.dist-info/METADATA,sha256=AdNljYaTm6fqCc8eaRcIFX0oeMcsqDTcMPdmqvBPAcs,2033
2031
+ kim_tools-0.3.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
2032
+ kim_tools-0.3.11.dist-info/top_level.txt,sha256=w_YCpJ5ERigj9te74ln7k64tqj1VumOzM_s9dsalIWY,10
2033
+ kim_tools-0.3.11.dist-info/RECORD,,