-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump
monty
to use the monty.json
import speedup patch, add import…
… time regression test, lazy load some rarely used but costly modules (#4128) * copy pyproject from 4073 * bump monty * recover networkx pin, and bump sympy * pin monty to lower ver to see what is causing the failure * revert all changes to pyproject but monty * bump sympy * sort and group optional deps * loose networkx pin for compatibility * lazy import sympy * lazy load scipy * Revert "lazy load scipy" This reverts commit 9688244. * try netcdf4 install with delvewheel, 1dfc9e4 * Revert "try netcdf4 install with delvewheel, 1dfc9e4" This reverts commit 75e23b1. * test netcdf4 1.7.1.post2, notice new release is out today * netcdf4 1.7.1.post2 doesn't work, try latest 1.7.2 * reset netcdf4 pin * why <= doesn't work? * add comment * exclude 1.7.2 as well (perhaps conditionally skip that test?) * add place holder * enhance comment * add TODO tag * tweak placeholder * replace assert_allclose for scalar compare * replace assert_allclose with isclose * fix is close * use np.allclose over np.all(np.isclose()) * lazy import AseAtomsAdaptor * guard type check import * lazy import matplotlib * toggle reference generation * update import time records * skip in not CI env * include current time in err msg * loose hard threshold to 100%, as it appear macos runner is prone to fluctuation * update type * skip test for macos * add PR tag for easy tracing * use perf_counter_ns for precision * bump torch timeout all the way to 5 min * Revert "bump torch timeout all the way to 5 min" This reverts commit 9c3d186. * migrate missing allclose relative tolerance --------- Co-authored-by: Shyue Ping Ong <[email protected]>
- Loading branch information
1 parent
65f52ea
commit 179cdeb
Showing
14 changed files
with
249 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import os | ||
import warnings | ||
from importlib.metadata import PackageNotFoundError, version | ||
from typing import Any | ||
from typing import TYPE_CHECKING | ||
|
||
from ruamel.yaml import YAML | ||
|
||
|
@@ -17,10 +17,14 @@ | |
from pymatgen.core.structure import IMolecule, IStructure, Molecule, PeriodicNeighbor, SiteCollection, Structure | ||
from pymatgen.core.units import ArrayWithUnit, FloatWithUnit, Unit | ||
|
||
if TYPE_CHECKING: | ||
from typing import Any | ||
|
||
__author__ = "Pymatgen Development Team" | ||
__email__ = "[email protected]" | ||
__maintainer__ = "Shyue Ping Ong, Matthew Horton, Janosh Riebesell" | ||
__maintainer_email__ = "[email protected]" | ||
|
||
try: | ||
__version__ = version("pymatgen") | ||
except PackageNotFoundError: # pragma: no cover | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"from pymatgen.core.bonds import CovalentBond": 289.5851116666108, | ||
"from pymatgen.core.composition import Composition": 292.8479909999548, | ||
"from pymatgen.core.interface import Interface": 969.5693099999593, | ||
"from pymatgen.core.ion import Ion": 291.07530133334575, | ||
"from pymatgen.core.lattice import Lattice": 288.8340153333881, | ||
"from pymatgen.core.libxcfunc import LibxcFunc": 293.4184753333587, | ||
"from pymatgen.core.molecular_orbitals import MolecularOrbitals": 294.19796566658835, | ||
"from pymatgen.core.operations import SymmOp": 296.4627546666634, | ||
"from pymatgen.core.periodic_table import Element": 295.95872066662804, | ||
"from pymatgen.core.sites import Site": 292.66485499999817, | ||
"from pymatgen.core.spectrum import Spectrum": 486.72776566669046, | ||
"from pymatgen.core.structure import Structure": 291.01618733333606, | ||
"from pymatgen.core.surface import Slab": 301.90875833329756, | ||
"from pymatgen.core.tensors import Tensor": 304.27744800003137, | ||
"from pymatgen.core.trajectory import Trajectory": 300.45536066666045, | ||
"from pymatgen.core.units import Unit": 305.4779056666348, | ||
"from pymatgen.core.xcfunc import XcFunc": 309.1085626666275 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"from pymatgen.core.bonds import CovalentBond": 321.8502360000457, | ||
"from pymatgen.core.composition import Composition": 292.35445800009074, | ||
"from pymatgen.core.interface import Interface": 855.005861000033, | ||
"from pymatgen.core.ion import Ion": 240.8930970000256, | ||
"from pymatgen.core.lattice import Lattice": 329.09868066659936, | ||
"from pymatgen.core.libxcfunc import LibxcFunc": 306.6966386666839, | ||
"from pymatgen.core.molecular_orbitals import MolecularOrbitals": 281.78087466661356, | ||
"from pymatgen.core.operations import SymmOp": 299.9741943333447, | ||
"from pymatgen.core.periodic_table import Element": 293.6565829999533, | ||
"from pymatgen.core.sites import Site": 280.3443330000543, | ||
"from pymatgen.core.spectrum import Spectrum": 459.20266666666976, | ||
"from pymatgen.core.structure import Structure": 265.4675833332476, | ||
"from pymatgen.core.surface import Slab": 306.0919996667053, | ||
"from pymatgen.core.tensors import Tensor": 310.54281933325, | ||
"from pymatgen.core.trajectory import Trajectory": 335.25658333329983, | ||
"from pymatgen.core.units import Unit": 294.03472200003006, | ||
"from pymatgen.core.xcfunc import XcFunc": 309.3993196666058 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"from pymatgen.core.bonds import CovalentBond": 443.7560000000455, | ||
"from pymatgen.core.composition import Composition": 441.06553333335796, | ||
"from pymatgen.core.interface import Interface": 1828.751033333295, | ||
"from pymatgen.core.ion import Ion": 443.58053333333675, | ||
"from pymatgen.core.lattice import Lattice": 445.729999999988, | ||
"from pymatgen.core.libxcfunc import LibxcFunc": 459.24773333338936, | ||
"from pymatgen.core.molecular_orbitals import MolecularOrbitals": 440.4825999999957, | ||
"from pymatgen.core.operations import SymmOp": 440.62226666665083, | ||
"from pymatgen.core.periodic_table import Element": 441.64050000002436, | ||
"from pymatgen.core.sites import Site": 442.1802333333744, | ||
"from pymatgen.core.spectrum import Spectrum": 737.3025000000174, | ||
"from pymatgen.core.structure import Structure": 445.0546333332568, | ||
"from pymatgen.core.surface import Slab": 463.0683333333157, | ||
"from pymatgen.core.tensors import Tensor": 463.5761666666743, | ||
"from pymatgen.core.trajectory import Trajectory": 443.9995333333779, | ||
"from pymatgen.core.units import Unit": 446.352766666602, | ||
"from pymatgen.core.xcfunc import XcFunc": 469.42599999996065 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.