Skip to content

Commit 6b1f7d7

Browse files
authored
Merge pull request #19 from UMThorntonGroup/0-1-6-bugfixes
some fixes
2 parents aedef84 + e7f5793 commit 6b1f7d7

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

ammber/BinarySystems.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ def __init__(self, component="", solution_component="", phases=None):
413413
phases : dict {string phase_name : BinaryIsothermal2ndOrderPhase phase}
414414
(optional) composition to be sampled
415415
"""
416+
self.component = component
417+
self.solution_component = solution_component
416418
self.phases = {}
417419
if phases is not None:
418420
self.phases = phases

ammber/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
A Python package for parametrizing gibbs free energy curves for phase-field modeling.
55
"""
66

7-
__version__ = "0.1.4"
7+
__version__ = "0.1.6"
88
__author__ = 'W. Beck Andrews, Xander Mensah, Katsuyo Thornton'
99
__credits__ = 'University of Michigan'

ammber/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def add_to_dict(binaryIsothermalSys, dict, add_templates=False, c0={}, Vm=None,
3131
dict["phases"][phase_name][comp] = {}
3232
dict["phases"][phase_name][comp]["k_well"] = phase.kwell
3333
dict["phases"][phase_name][comp]["c_min"] = phase.cmin
34-
dict["phases"][phase_name][comp]["f_min"] = phase.fmin
34+
dict["phases"][phase_name]["f_min"] = phase.fmin
3535

3636
if add_templates:
3737
c0_phase_keys = list(c0.keys())
@@ -47,4 +47,5 @@ def add_to_dict(binaryIsothermalSys, dict, add_templates=False, c0={}, Vm=None,
4747
dict["Vm"] = Vm if Vm is not None else -1.0
4848
if "order_parameters" not in dict:
4949
dict["order_parameters"] = list(binaryIsothermalSys.phases.keys())
50-
50+
if "dimensions" not in dict:
51+
dict["dimensions"] = { "length_scale": 0.0, "time_scale": 0.0, "energy_density_scale": 0.0 }

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ build-backend = "setuptools.build_meta"
2929

3030
[project]
3131
name = "ammber"
32-
version = "0.1.4"
32+
version = "0.1.6"
3333
description = "A Python package for parametrizing Gibbs free energy curves for phase-field modeling"
3434
authors = [
3535
{ name = "W. Beck Andrews", email = "wband@umich.edu" },

0 commit comments

Comments
 (0)