calphy 1.4.2__tar.gz → 1.4.3__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 (37) hide show
  1. {calphy-1.4.2/calphy.egg-info → calphy-1.4.3}/PKG-INFO +1 -1
  2. {calphy-1.4.2 → calphy-1.4.3}/calphy/__init__.py +1 -1
  3. {calphy-1.4.2 → calphy-1.4.3}/calphy/input.py +1 -1
  4. {calphy-1.4.2 → calphy-1.4.3}/calphy/phase_diagram.py +4 -1
  5. {calphy-1.4.2 → calphy-1.4.3}/calphy/solid.py +1 -1
  6. {calphy-1.4.2 → calphy-1.4.3/calphy.egg-info}/PKG-INFO +1 -1
  7. {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/SOURCES.txt +1 -0
  8. {calphy-1.4.2 → calphy-1.4.3}/setup.py +1 -1
  9. calphy-1.4.3/tests/test_ex07.py +25 -0
  10. {calphy-1.4.2 → calphy-1.4.3}/LICENSE +0 -0
  11. {calphy-1.4.2 → calphy-1.4.3}/MANIFEST.in +0 -0
  12. {calphy-1.4.2 → calphy-1.4.3}/README.md +0 -0
  13. {calphy-1.4.2 → calphy-1.4.3}/calphy/alchemy.py +0 -0
  14. {calphy-1.4.2 → calphy-1.4.3}/calphy/clitools.py +0 -0
  15. {calphy-1.4.2 → calphy-1.4.3}/calphy/composition_transformation.py +0 -0
  16. {calphy-1.4.2 → calphy-1.4.3}/calphy/errors.py +0 -0
  17. {calphy-1.4.2 → calphy-1.4.3}/calphy/helpers.py +0 -0
  18. {calphy-1.4.2 → calphy-1.4.3}/calphy/integrators.py +0 -0
  19. {calphy-1.4.2 → calphy-1.4.3}/calphy/kernel.py +0 -0
  20. {calphy-1.4.2 → calphy-1.4.3}/calphy/liquid.py +0 -0
  21. {calphy-1.4.2 → calphy-1.4.3}/calphy/phase.py +0 -0
  22. {calphy-1.4.2 → calphy-1.4.3}/calphy/postprocessing.py +0 -0
  23. {calphy-1.4.2 → calphy-1.4.3}/calphy/queuekernel.py +0 -0
  24. {calphy-1.4.2 → calphy-1.4.3}/calphy/routines.py +0 -0
  25. {calphy-1.4.2 → calphy-1.4.3}/calphy/scheduler.py +0 -0
  26. {calphy-1.4.2 → calphy-1.4.3}/calphy/splines.py +0 -0
  27. {calphy-1.4.2 → calphy-1.4.3}/calphy/utils.py +0 -0
  28. {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/dependency_links.txt +0 -0
  29. {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/entry_points.txt +0 -0
  30. {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/not-zip-safe +0 -0
  31. {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/requires.txt +0 -0
  32. {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/top_level.txt +0 -0
  33. {calphy-1.4.2 → calphy-1.4.3}/setup.cfg +0 -0
  34. {calphy-1.4.2 → calphy-1.4.3}/tests/test_helpers.py +0 -0
  35. {calphy-1.4.2 → calphy-1.4.3}/tests/test_integrators.py +0 -0
  36. {calphy-1.4.2 → calphy-1.4.3}/tests/test_options.py +0 -0
  37. {calphy-1.4.2 → calphy-1.4.3}/tests/test_solid_methods.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: calphy
3
- Version: 1.4.2
3
+ Version: 1.4.3
4
4
  Summary: free energy calculation for python
5
5
  Home-page: https://github.com/ICAMS/calphy
6
6
  Author: Sarath Menon, Yury Lysogorskiy, Ralf Drautz
@@ -4,7 +4,7 @@ from calphy.solid import Solid
4
4
  from calphy.alchemy import Alchemy
5
5
  from calphy.routines import MeltingTemp
6
6
 
7
- __version__ = "1.4.2"
7
+ __version__ = "1.4.3"
8
8
 
9
9
  def addtest(a,b):
10
10
  return a+b
@@ -48,7 +48,7 @@ from pyscal3.core import structure_dict, element_dict, _make_crystal
48
48
  from ase.io import read, write
49
49
  import shutil
50
50
 
51
- __version__ = "1.4.2"
51
+ __version__ = "1.4.3"
52
52
 
53
53
 
54
54
  def _check_equal(val):
@@ -314,7 +314,10 @@ def prepare_inputs_for_phase_diagram(inputyamlfile, calculation_base_name=None):
314
314
 
315
315
  comps = phase['composition']
316
316
  reference_element = comps["reference_element"]
317
- use_composition_scaling = bool(comps["use_composition_scaling"])
317
+ if "use_composition_scaling" in comps.keys():
318
+ use_composition_scaling = bool(comps["use_composition_scaling"])
319
+ else:
320
+ use_composition_scaling = True
318
321
  if str(phase_reference_state) == 'liquid':
319
322
  use_composition_scaling = False
320
323
 
@@ -299,7 +299,7 @@ class Solid(cph.Phase):
299
299
  lmp.command(f'pair_style {self.calc._pair_style_with_options[0]}')
300
300
 
301
301
  #set up structure
302
- lmp = ph.create_structure(lmp, self.calc, species=self.calc.n_elements+self.calc._ghost_element_count)
302
+ lmp = ph.create_structure(lmp, self.calc)
303
303
 
304
304
  if self.calc.potential_file is None:
305
305
  lmp.command(f'pair_coeff {self.calc.pair_coeff[0]}')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: calphy
3
- Version: 1.4.2
3
+ Version: 1.4.3
4
4
  Summary: free energy calculation for python
5
5
  Home-page: https://github.com/ICAMS/calphy
6
6
  Author: Sarath Menon, Yury Lysogorskiy, Ralf Drautz
@@ -28,6 +28,7 @@ calphy.egg-info/entry_points.txt
28
28
  calphy.egg-info/not-zip-safe
29
29
  calphy.egg-info/requires.txt
30
30
  calphy.egg-info/top_level.txt
31
+ tests/test_ex07.py
31
32
  tests/test_helpers.py
32
33
  tests/test_integrators.py
33
34
  tests/test_options.py
@@ -53,7 +53,7 @@ setup(
53
53
  packages=find_packages(include=['calphy', 'calphy.*']),
54
54
  test_suite='tests',
55
55
  url='https://github.com/ICAMS/calphy',
56
- version='1.4.2',
56
+ version='1.4.3',
57
57
  zip_safe=False,
58
58
  entry_points={
59
59
  'console_scripts': [
@@ -0,0 +1,25 @@
1
+ def test_ex07():
2
+ import calphy
3
+ from calphy.postprocessing import read_report
4
+
5
+ # def test_example07_first_cell_runs():
6
+ # notebook_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '../examples/example_07/analysis.ipynb'))
7
+
8
+ # with open(notebook_path, "r", encoding="utf-8") as f:
9
+ # nb = nbformat.read(f, as_version=4)
10
+
11
+ # # Filter just the first code cell
12
+ # first_code_cell = next((cell for cell in nb.cells if cell.cell_type == "code"), None)
13
+
14
+ # if not first_code_cell:
15
+ # pytest.fail("No code cell found in example07.ipynb")
16
+
17
+ # # Create a minimal notebook with only the first cell
18
+ # nb_single = nbformat.v4.new_notebook()
19
+ # nb_single.cells = [first_code_cell]
20
+
21
+ # try:
22
+ # client = NotebookClient(nb_single, timeout=60, kernel_name="pyiron")
23
+ # client.execute()
24
+ # except Exception as e:
25
+ # pytest.fail(f"First code cell in example07.analysis.ipynb failed: {e}")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes