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.
- {calphy-1.4.2/calphy.egg-info → calphy-1.4.3}/PKG-INFO +1 -1
- {calphy-1.4.2 → calphy-1.4.3}/calphy/__init__.py +1 -1
- {calphy-1.4.2 → calphy-1.4.3}/calphy/input.py +1 -1
- {calphy-1.4.2 → calphy-1.4.3}/calphy/phase_diagram.py +4 -1
- {calphy-1.4.2 → calphy-1.4.3}/calphy/solid.py +1 -1
- {calphy-1.4.2 → calphy-1.4.3/calphy.egg-info}/PKG-INFO +1 -1
- {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/SOURCES.txt +1 -0
- {calphy-1.4.2 → calphy-1.4.3}/setup.py +1 -1
- calphy-1.4.3/tests/test_ex07.py +25 -0
- {calphy-1.4.2 → calphy-1.4.3}/LICENSE +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/MANIFEST.in +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/README.md +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/alchemy.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/clitools.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/composition_transformation.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/errors.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/helpers.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/integrators.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/kernel.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/liquid.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/phase.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/postprocessing.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/queuekernel.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/routines.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/scheduler.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/splines.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy/utils.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/dependency_links.txt +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/entry_points.txt +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/not-zip-safe +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/requires.txt +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/calphy.egg-info/top_level.txt +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/setup.cfg +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/tests/test_helpers.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/tests/test_integrators.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/tests/test_options.py +0 -0
- {calphy-1.4.2 → calphy-1.4.3}/tests/test_solid_methods.py +0 -0
|
@@ -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
|
|
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
|
|
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]}')
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|