Skip to content

Commit 969e029

Browse files
committed
bug fix
1 parent 301943d commit 969e029

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)