Skip to content

Commit

Permalink
fixed pymatgen minimum dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wolearyc committed Oct 2, 2024
1 parent 4984f65 commit 8d16c9b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
Empty file removed =
Empty file.
20 changes: 13 additions & 7 deletions deps/pymatgen_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
matplotlib >= 3.7.0 # min recommended
mpmath >= 1.2.0
pandas >= 2.0.0 # min recommended
pillow >= 8.3.2 # min recommended
pymatgen >= 2022.2.10;python_version=='3.10' # min recommended
pymatgen >= 2022.2.10;python_version=='3.11' # min recommended
pymatgen >= 2022.2.10;python_version=='3.12' # min recommended
pillow >= 8.3.2;python_version=='3.10' and sys_platform=='darwin' # working
pillow >= 8.3.2;python_version=='3.10' and sys_platform=='win32' # working
pillow >= 8.3.2;python_version=='3.10' and sys_platform=='linux' # min recommended
pillow >= 8.3.2;python_version=='3.11' and sys_platform=='darwin' # min recommended
pillow >= 10.0.0;python_version=='3.11' and sys_platform=='win32' # working
pillow >= 8.3.2;python_version=='3.11' and sys_platform=='linux' # min recommended
pillow >= 10.1.0;python_version=='3.12' and sys_platform=='darwin' # working
pillow >= 10.1.0;python_version=='3.12' and sys_platform=='win32' # working
pillow >= 10.1.0;python_version=='3.12' and sys_platform=='linux' # min recommended
pymatgen >= 2024.8.9 # min working
pyparsing >= 3.0.0 # min working
ruamel-yaml >= 0.17.2
sympy >= 1.10;python_version=='3.10' # min working
sympy >= 1.11;python_version=='3.11' # min working
sympy >= 1.13.1;python_version=='3.12' # min working
sympy >= 1.13.3;python_version=='3.12'
uncertainties >= 3.1.7
20 changes: 13 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,22 @@ torch = [
]
pymatgen = [
"matplotlib >= 3.7.0", # min recommended
"mpmath >= 1.2.0",
"pandas >= 2.0.0", # min recommended
"pillow >= 8.3.2", # min recommended
"pymatgen >= 2022.2.10;python_version=='3.10'", # min recommended
"pymatgen >= 2022.2.10;python_version=='3.11'", # min recommended
"pymatgen >= 2022.2.10;python_version=='3.12'", # min recommended
'pillow >= 8.3.2;python_version=="3.10" and sys_platform=="darwin"', # working
'pillow >= 8.3.2;python_version=="3.10" and sys_platform=="win32"', # working
'pillow >= 8.3.2;python_version=="3.10" and sys_platform=="linux"', # min recommended
'pillow >= 8.3.2;python_version=="3.11" and sys_platform=="darwin"', # min recommended
'pillow >= 10.0.0;python_version=="3.11" and sys_platform=="win32"', # working
'pillow >= 8.3.2;python_version=="3.11" and sys_platform=="linux"', # min recommended
'pillow >= 10.1.0;python_version=="3.12" and sys_platform=="darwin"', # working
'pillow >= 10.1.0;python_version=="3.12" and sys_platform=="win32"', # working
'pillow >= 10.1.0;python_version=="3.12" and sys_platform=="linux"', # min recommended
"pymatgen >= 2024.8.9", # min working
"pyparsing >= 3.0.0", # min working
"ruamel-yaml >= 0.17.2",
"sympy >= 1.10;python_version=='3.10'", # min working
"sympy >= 1.11;python_version=='3.11'", # min working
"sympy >= 1.13.1;python_version=='3.12'", # min working
'sympy >= 1.13.3;python_version=="3.12"',
"uncertainties >= 3.1.7",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion test/tests/torch/test_gnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def test_calc_polarizabilities(
forward = polarizability_vectors_to_tensors(forward.detach().clone()).numpy()
calc = model.calc_polarizabilities(batch_positions.detach().clone().numpy())

assert np.allclose(forward, calc)
assert np.allclose(forward, calc, atol=1e-6)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 8d16c9b

Please sign in to comment.