Skip to content

Commit 571dd57

Browse files
authored
Merge pull request #430 from bobmyhill/migrate
moved averaging_schemes and geotherm
2 parents ea78bf2 + 8f935be commit 571dd57

File tree

8 files changed

+166
-110
lines changed

8 files changed

+166
-110
lines changed

Diff for: burnman/__init__.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@
203203
from .classes.planet import Planet
204204
from .classes.polytope import MaterialPolytope
205205
from .classes import seismic
206-
207-
from . import averaging_schemes
208-
from . import geotherm
206+
from .classes import averaging_schemes
209207

210208
# Mineral library
211209
from . import minerals
@@ -215,14 +213,13 @@
215213

216214
# Tools
217215
from . import tools
216+
from .tools import geotherm
218217
from .tools.equilibration import equilibrate
218+
from .tools.partitioning import calculate_nakajima_fp_pv_partition_coefficient
219219

220220
# Optimization functions
221221
from .optimize import composition_fitting
222222
from .optimize import linear_fitting
223223
from .optimize import nonlinear_fitting
224224
from .optimize import nonlinear_solvers
225225
from .optimize import eos_fitting
226-
227-
# Miscellaneous
228-
from .tools.partitioning import calculate_nakajima_fp_pv_partition_coefficient
File renamed without changes.

Diff for: burnman/classes/combinedmineral.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
1+
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for
2+
# the Earth and Planetary Sciences
23
# Copyright (C) 2012 - 2017 by the BurnMan team, released under the GNU
34
# GPL v2 or later.
45

@@ -11,8 +12,8 @@
1112
from .mineral import Mineral, material_property
1213
from .solidsolution import SolidSolution
1314
from .solutionmodel import *
15+
from .averaging_schemes import reuss_average_function
1416

15-
from ..averaging_schemes import reuss_average_function
1617
from ..tools.chemistry import sum_formulae
1718
from .. import constants
1819

Diff for: burnman/classes/composite.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
1+
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for
2+
# the Earth and Planetary Sciences
23
# Copyright (C) 2012 - 2021 by the BurnMan team, released under the GNU
34
# GPL v2 or later.
45

@@ -11,10 +12,11 @@
1112
from .material import Material, material_property, cached_property
1213
from .mineral import Mineral
1314
from .solidsolution import SolidSolution
15+
from . import averaging_schemes
1416

1517
from ..tools.reductions import independent_row_indices
1618
from ..tools.chemistry import sum_formulae, sort_element_list_to_IUPAC_order
17-
from .. import averaging_schemes
19+
1820

1921
def check_pairs(phases, fractions):
2022
if len(fractions) < 1:

Diff for: burnman/classes/layer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from scipy.integrate import quad
1010
from scipy.interpolate import UnivariateSpline, interp1d
1111
from burnman import constants
12-
from burnman import geotherm
12+
from burnman.tools import geotherm
1313
import warnings
1414

1515
from .material import Material, material_property

0 commit comments

Comments
 (0)