Skip to content

Commit 19411b5

Browse files
authored
Merge pull request #175 from ICAMS/bug_fix1
bug fix
2 parents 301943d + 969e029 commit 19411b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

calphy/phase_diagram.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ def prepare_inputs_for_phase_diagram(inputyamlfile, calculation_base_name=None):
314314

315315
comps = phase['composition']
316316
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
318321
if str(phase_reference_state) == 'liquid':
319322
use_composition_scaling = False
320323

0 commit comments

Comments
 (0)