atomistics 0.4.0__tar.gz → 0.4.1__tar.gz

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.
Files changed (57) hide show
  1. {atomistics-0.4.0 → atomistics-0.4.1}/PKG-INFO +20 -23
  2. {atomistics-0.4.0 → atomistics-0.4.1}/pyproject.toml +20 -24
  3. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/_version.py +2 -2
  4. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/__init__.py +8 -0
  5. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/ase.py +3 -1
  6. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/hessian.py +1 -1
  7. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/interface.py +4 -15
  8. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/lammps/__init__.py +10 -0
  9. atomistics-0.4.1/src/atomistics/calculators/lammps/elastic.py +676 -0
  10. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/lammps/filecalculator.py +4 -4
  11. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/lammps/helpers.py +5 -3
  12. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/lammps/melting.py +1 -1
  13. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/lammps/phonon.py +3 -3
  14. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/lammps/shared.py +5 -3
  15. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/sphinxdft.py +9 -9
  16. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/vasp.py +6 -6
  17. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/wrapper.py +2 -1
  18. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/referencedata/wolframalpha.py +12 -10
  19. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/shared/output.py +2 -0
  20. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/shared/thermal_expansion.py +25 -3
  21. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/shared/tqdm_iterator.py +1 -1
  22. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/__init__.py +16 -0
  23. atomistics-0.4.1/src/atomistics/workflows/elastic/finite_temperature.py +277 -0
  24. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/elastic/helper.py +2 -2
  25. atomistics-0.4.1/src/atomistics/workflows/elastic/quasiharmonic.py +166 -0
  26. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/elastic/symmetry.py +6 -5
  27. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/evcurve/debye.py +58 -11
  28. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/evcurve/fit.py +10 -10
  29. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/evcurve/helper.py +8 -8
  30. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/evcurve/thermo.py +10 -12
  31. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/evcurve/workflow.py +4 -2
  32. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/langevin.py +5 -5
  33. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/phonons/helper.py +33 -20
  34. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/phonons/workflow.py +7 -9
  35. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/quasiharmonic.py +58 -20
  36. {atomistics-0.4.0 → atomistics-0.4.1}/.gitignore +0 -0
  37. {atomistics-0.4.0 → atomistics-0.4.1}/LICENSE +0 -0
  38. {atomistics-0.4.0 → atomistics-0.4.1}/README.md +0 -0
  39. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/__init__.py +0 -0
  40. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/lammps/commands.py +0 -0
  41. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/lammps/libcalculator.py +0 -0
  42. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/calculators/qe.py +0 -0
  43. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/referencedata/__init__.py +0 -0
  44. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/referencedata/mendeleev.py +0 -0
  45. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/referencedata/wikipedia.py +0 -0
  46. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/shared/__init__.py +0 -0
  47. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/shared/import_warning.py +0 -0
  48. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/shared/parallel.py +0 -0
  49. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/elastic/__init__.py +0 -0
  50. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/elastic/elastic_moduli.py +0 -0
  51. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/elastic/workflow.py +0 -0
  52. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/evcurve/__init__.py +0 -0
  53. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/interface.py +0 -0
  54. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/molecular_dynamics.py +0 -0
  55. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/phonons/__init__.py +0 -0
  56. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/phonons/units.py +0 -0
  57. {atomistics-0.4.0 → atomistics-0.4.1}/src/atomistics/workflows/structure_optimization.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: atomistics
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Interfaces for atomistic simulation codes and workflows
5
5
  Project-URL: Homepage, https://github.com/pyiron/atomistics
6
6
  Project-URL: Documentation, https://atomistics.readthedocs.io
@@ -41,47 +41,44 @@ Classifier: Development Status :: 5 - Production/Stable
41
41
  Classifier: Intended Audience :: Science/Research
42
42
  Classifier: License :: OSI Approved :: BSD License
43
43
  Classifier: Operating System :: OS Independent
44
- Classifier: Programming Language :: Python :: 3.9
45
- Classifier: Programming Language :: Python :: 3.10
46
44
  Classifier: Programming Language :: Python :: 3.11
47
45
  Classifier: Programming Language :: Python :: 3.12
48
46
  Classifier: Programming Language :: Python :: 3.13
47
+ Classifier: Programming Language :: Python :: 3.14
49
48
  Classifier: Topic :: Scientific/Engineering :: Physics
50
- Requires-Python: <3.15,>=3.9
51
- Requires-Dist: ase<3.30.0,>=3.23.0
49
+ Requires-Python: <3.15,>=3.12
50
+ Requires-Dist: ase<3.31.0,>=3.23.0
52
51
  Requires-Dist: numpy<2.6.0,>=1.26.4
53
- Requires-Dist: scipy<1.19.0,>=1.11.2
54
- Requires-Dist: spglib<2.8.0,>=2.0.2
52
+ Requires-Dist: scipy<1.19.0,>=1.16.3
53
+ Requires-Dist: spglib==2.8.0
55
54
  Provides-Extra: experimental
56
- Requires-Dist: lxml<6.2.0,>=4.9.1; extra == 'experimental'
57
- Requires-Dist: mendeleev<1.4.0,>=0.12.0; extra == 'experimental'
58
- Requires-Dist: pandas<3.1.0,>=2.0.3; extra == 'experimental'
59
- Requires-Dist: requests<2.35.0,>=2.24.0; extra == 'experimental'
55
+ Requires-Dist: lxml<6.3.0,>=6.0.2; extra == 'experimental'
56
+ Requires-Dist: mendeleev<1.5.0,>=0.12.0; extra == 'experimental'
57
+ Requires-Dist: pandas<3.2.0,>=2.3.3; extra == 'experimental'
58
+ Requires-Dist: requests==2.34.2; extra == 'experimental'
60
59
  Provides-Extra: gpaw
61
- Requires-Dist: gpaw<25.8.0,>=21.6.0; extra == 'gpaw'
60
+ Requires-Dist: gpaw<25.8.0,>=24.6.0; extra == 'gpaw'
62
61
  Provides-Extra: lammps
63
- Requires-Dist: jinja2<3.2.0,>=2.11.3; extra == 'lammps'
62
+ Requires-Dist: jinja2<3.2.0,>=3.1.0; extra == 'lammps'
64
63
  Requires-Dist: lammpsparser<0.2.0,>=0.0.1; extra == 'lammps'
65
- Requires-Dist: pandas<3.1.0,>=2.0.3; extra == 'lammps'
64
+ Requires-Dist: pandas<3.2.0,>=2.3.3; extra == 'lammps'
66
65
  Requires-Dist: pylammpsmpi<0.7.0,>=0.2.1; extra == 'lammps'
67
66
  Provides-Extra: lammps-phonons
68
- Requires-Dist: dynaphopy<1.19.0,>=1.17.11; extra == 'lammps-phonons'
69
- Requires-Dist: jinja2<3.2.0,>=2.11.3; extra == 'lammps-phonons'
67
+ Requires-Dist: dynaphopy<1.20.0,>=1.17.16; extra == 'lammps-phonons'
68
+ Requires-Dist: jinja2<3.2.0,>=3.1.0; extra == 'lammps-phonons'
70
69
  Requires-Dist: lammpsparser<0.2.0,>=0.0.1; extra == 'lammps-phonons'
71
- Requires-Dist: pandas<3.1.0,>=2.0.3; extra == 'lammps-phonons'
70
+ Requires-Dist: pandas<3.2.0,>=2.3.3; extra == 'lammps-phonons'
72
71
  Requires-Dist: pylammpsmpi<0.7.0,>=0.2.1; extra == 'lammps-phonons'
73
72
  Provides-Extra: phonopy
74
- Requires-Dist: phonopy<4.9.0,>=2.20.0; extra == 'phonopy'
73
+ Requires-Dist: phonopy<4.12.0,>=2.48.0; extra == 'phonopy'
75
74
  Requires-Dist: seekpath<2.3.0,>=1.9.0; extra == 'phonopy'
76
- Requires-Dist: structuretoolkit<0.2.0,>=0.0.10; extra == 'phonopy'
77
- Provides-Extra: qe
78
- Requires-Dist: pwtools==1.3.0; extra == 'qe'
75
+ Requires-Dist: structuretoolkit<0.2.0,>=0.0.37; extra == 'phonopy'
79
76
  Provides-Extra: sphinxdft
80
- Requires-Dist: sphinx-parser==0.1.11; extra == 'sphinxdft'
77
+ Requires-Dist: sphinx-parser==0.1.12; extra == 'sphinxdft'
81
78
  Provides-Extra: tqdm
82
79
  Requires-Dist: tqdm<4.71.0,>=4.44.0; extra == 'tqdm'
83
80
  Provides-Extra: vasp
84
- Requires-Dist: vaspparser<0.2.0,>=0.0.1; extra == 'vasp'
81
+ Requires-Dist: vaspparser<0.3.0,>=0.0.1; extra == 'vasp'
85
82
  Description-Content-Type: text/markdown
86
83
 
87
84
  # atomistics
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["ase", "numpy", "scipy", "spglib", "hatchling==1.32.4", "hatch-vcs==0.5.0"]
2
+ requires = ["ase", "numpy", "scipy", "spglib", "hatchling==1.33.0", "hatch-vcs==0.5.0"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
5
  [project]
@@ -11,24 +11,23 @@ authors = [
11
11
  readme = "README.md"
12
12
  license = { file = "LICENSE" }
13
13
  keywords = ["pyiron"]
14
- requires-python = ">=3.9, <3.15"
14
+ requires-python = ">=3.12, <3.15"
15
15
  classifiers = [
16
16
  "Development Status :: 5 - Production/Stable",
17
17
  "Topic :: Scientific/Engineering :: Physics",
18
18
  "License :: OSI Approved :: BSD License",
19
19
  "Intended Audience :: Science/Research",
20
20
  "Operating System :: OS Independent",
21
- "Programming Language :: Python :: 3.9",
22
- "Programming Language :: Python :: 3.10",
23
21
  "Programming Language :: Python :: 3.11",
24
22
  "Programming Language :: Python :: 3.12",
25
23
  "Programming Language :: Python :: 3.13",
24
+ "Programming Language :: Python :: 3.14",
26
25
  ]
27
26
  dependencies = [
28
- "ase>=3.23.0,<3.30.0",
27
+ "ase>=3.23.0,<3.31.0",
29
28
  "numpy>=1.26.4,<2.6.0",
30
- "scipy>=1.11.2,<1.19.0",
31
- "spglib>=2.0.2,<2.8.0",
29
+ "scipy>=1.16.3,<1.19.0",
30
+ "spglib==2.8.0",
32
31
  ]
33
32
  dynamic = ["version"]
34
33
 
@@ -39,43 +38,40 @@ Repository = "https://github.com/pyiron/atomistics"
39
38
 
40
39
  [project.optional-dependencies]
41
40
  phonopy = [
42
- "phonopy>=2.20.0,<4.9.0",
41
+ "phonopy>=2.48.0,<4.12.0",
43
42
  "seekpath>=1.9.0,<2.3.0",
44
- "structuretoolkit>=0.0.10,<0.2.0",
43
+ "structuretoolkit>=0.0.37,<0.2.0",
45
44
  ]
46
45
  gpaw = [
47
- "gpaw>=21.6.0,<25.8.0",
46
+ "gpaw>=24.6.0,<25.8.0",
48
47
  ]
49
48
  lammps = [
50
49
  "pylammpsmpi>=0.2.1,<0.7.0",
51
- "jinja2>=2.11.3,<3.2.0",
52
- "pandas>=2.0.3,<3.1.0",
50
+ "jinja2>=3.1.0,<3.2.0",
51
+ "pandas>=2.3.3,<3.2.0",
53
52
  "lammpsparser>=0.0.1,<0.2.0",
54
53
  ]
55
54
  lammps_phonons = [
56
55
  "pylammpsmpi>=0.2.1,<0.7.0",
57
- "jinja2>=2.11.3,<3.2.0",
58
- "pandas>=2.0.3,<3.1.0",
59
- "dynaphopy>=1.17.11,<1.19.0",
56
+ "jinja2>=3.1.0,<3.2.0",
57
+ "pandas>=2.3.3,<3.2.0",
58
+ "dynaphopy>=1.17.16,<1.20.0",
60
59
  "lammpsparser>=0.0.1,<0.2.0",
61
60
  ]
62
61
  experimental = [
63
- "lxml>=4.9.1,<6.2.0",
64
- "mendeleev>=0.12.0,<1.4.0",
65
- "pandas>=2.0.3,<3.1.0",
66
- "requests>=2.24.0,<2.35.0",
62
+ "lxml>=6.0.2,<6.3.0",
63
+ "mendeleev>=0.12.0,<1.5.0",
64
+ "pandas>=2.3.3,<3.2.0",
65
+ "requests==2.34.2",
67
66
  ]
68
67
  sphinxdft = [
69
- "sphinx-parser==0.1.11"
70
- ]
71
- qe = [
72
- "pwtools==1.3.0"
68
+ "sphinx-parser==0.1.12"
73
69
  ]
74
70
  tqdm = [
75
71
  "tqdm>=4.44.0,<4.71.0"
76
72
  ]
77
73
  vasp = [
78
- "vaspparser>=0.0.1,<0.2.0"
74
+ "vaspparser>=0.0.1,<0.3.0"
79
75
  ]
80
76
 
81
77
  [tool.hatch.build]
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.4.0'
22
- __version_tuple__ = version_tuple = (0, 4, 0)
21
+ __version__ = version = '0.4.1'
22
+ __version_tuple__ = version_tuple = (0, 4, 1)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -23,6 +23,10 @@ __all__: list[str] = [
23
23
  "evaluate_with_hessian",
24
24
  ]
25
25
  lammps_functions: list[str] = [
26
+ "calc_elastic_matrix_deformation_with_lammpslib",
27
+ "calc_elastic_matrix_quasi_harmonic_with_lammpslib",
28
+ "calc_elastic_matrix_stress_fluctuation_with_lammpslib",
29
+ "calc_molecular_dynamics_npt_volumes_with_lammpslib",
26
30
  "calc_molecular_dynamics_thermal_expansion_with_lammpslib",
27
31
  "calc_molecular_dynamics_nph_with_lammpslib",
28
32
  "calc_molecular_dynamics_npt_with_lammpslib",
@@ -67,8 +71,12 @@ else:
67
71
 
68
72
  try:
69
73
  from atomistics.calculators.lammps import (
74
+ calc_elastic_matrix_deformation_with_lammpslib,
75
+ calc_elastic_matrix_quasi_harmonic_with_lammpslib,
76
+ calc_elastic_matrix_stress_fluctuation_with_lammpslib,
70
77
  calc_molecular_dynamics_langevin_with_lammpslib,
71
78
  calc_molecular_dynamics_nph_with_lammpslib,
79
+ calc_molecular_dynamics_npt_volumes_with_lammpslib,
72
80
  calc_molecular_dynamics_npt_with_lammpslib,
73
81
  calc_molecular_dynamics_nvt_with_lammpslib,
74
82
  calc_molecular_dynamics_thermal_expansion_with_lammpslib,
@@ -413,7 +413,7 @@ def calc_molecular_dynamics_thermal_expansion_with_ase(
413
413
  temperature_lst = np.arange(
414
414
  temperature_start, temperature_stop + temperature_step, temperature_step
415
415
  ).tolist()
416
- volume_md_lst, temperature_md_lst = [], []
416
+ volume_md_lst, temperature_md_lst, cell_md_lst = [], [], []
417
417
  for temperature in get_tqdm_iterator(temperature_lst):
418
418
  result_dict = calc_molecular_dynamics_npt_with_ase(
419
419
  structure=structure_current.copy(),
@@ -428,11 +428,13 @@ def calc_molecular_dynamics_thermal_expansion_with_ase(
428
428
  seed=seed,
429
429
  )
430
430
  structure_current.set_cell(cell=result_dict["cell"][-1], scale_atoms=True)
431
+ cell_md_lst.append(np.array(result_dict["cell"][-1]))
431
432
  temperature_md_lst.append(result_dict["temperature"][-1])
432
433
  volume_md_lst.append(result_dict["volume"][-1])
433
434
  return get_thermal_expansion_output(
434
435
  temperatures_lst=np.array(temperature_md_lst),
435
436
  volumes_lst=np.array(volume_md_lst),
437
+ cells_lst=np.array(cell_md_lst),
436
438
  output_keys=output_keys,
437
439
  )
438
440
 
@@ -217,7 +217,7 @@ def evaluate_with_hessian(
217
217
  force_constants: np.ndarray,
218
218
  bulk_modulus: float = 0.0,
219
219
  shear_modulus: float = 0.0,
220
- ) -> dict[str, Union[float, np.ndarray]]:
220
+ ) -> dict[str, float | np.ndarray]:
221
221
  """
222
222
  Evaluate the specified tasks using the Hessian calculator.
223
223
 
@@ -1,17 +1,6 @@
1
- # best would be StrEnum from py3.11
2
- import sys
3
- from collections.abc import Iterable
4
- from enum import Enum
5
- from typing import TYPE_CHECKING, Any, Callable, Union
6
-
7
- if sys.version_info < (3, 11):
8
- # official impl' is not significantly different
9
- class StrEnum(str, Enum):
10
- def __str__(self):
11
- return str(self.value)
12
-
13
- else:
14
- from enum import StrEnum
1
+ from collections.abc import Callable, Iterable
2
+ from enum import Enum, StrEnum
3
+ from typing import TYPE_CHECKING, Any
15
4
 
16
5
 
17
6
  class TaskEnum(StrEnum):
@@ -42,7 +31,7 @@ class TaskOutputEnum(Enum):
42
31
  volume_over_temperature = "calc_molecular_dynamics_thermal_expansion"
43
32
 
44
33
 
45
- TaskName = Union[str, TaskEnum]
34
+ TaskName = str | TaskEnum
46
35
 
47
36
 
48
37
  if TYPE_CHECKING:
@@ -1,5 +1,11 @@
1
1
  from lammpsparser import get_potential_by_name, get_potential_dataframe
2
2
 
3
+ from atomistics.calculators.lammps.elastic import (
4
+ calc_elastic_matrix_deformation_with_lammpslib,
5
+ calc_elastic_matrix_quasi_harmonic_with_lammpslib,
6
+ calc_elastic_matrix_stress_fluctuation_with_lammpslib,
7
+ calc_molecular_dynamics_npt_volumes_with_lammpslib,
8
+ )
3
9
  from atomistics.calculators.lammps.libcalculator import (
4
10
  calc_molecular_dynamics_langevin_with_lammpslib,
5
11
  calc_molecular_dynamics_nph_with_lammpslib,
@@ -15,6 +21,10 @@ from atomistics.calculators.lammps.libcalculator import (
15
21
  from atomistics.shared.import_warning import raise_warning
16
22
 
17
23
  __all__: list[str] = [
24
+ "calc_elastic_matrix_deformation_with_lammpslib",
25
+ "calc_elastic_matrix_quasi_harmonic_with_lammpslib",
26
+ "calc_elastic_matrix_stress_fluctuation_with_lammpslib",
27
+ "calc_molecular_dynamics_npt_volumes_with_lammpslib",
18
28
  "calc_molecular_dynamics_thermal_expansion_with_lammpslib",
19
29
  "calc_molecular_dynamics_nph_with_lammpslib",
20
30
  "calc_molecular_dynamics_npt_with_lammpslib",