We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 849dc9b commit 9830b1eCopy full SHA for 9830b1e
pymatgen/io/validation/validation.py
@@ -46,6 +46,7 @@
46
47
48
def is_package_is_up_to_date(package_name: str):
49
+ """check if a package is up-to-date."""
50
try:
51
cur_version = version(package_name)
52
except Exception:
@@ -88,6 +89,7 @@ class ValidationDoc(EmmetBaseModel):
88
89
# )
90
91
def model_post_init(self, ctx):
92
+ """Warn the user if pymatgen / pymatgen-io-validation is not up-to-date."""
93
import warnings
94
95
pymatgen_is_up_to_date = is_package_is_up_to_date("pymatgen")
0 commit comments