From 05a89a914db0f268142a91fa4045f9dca2ce9930 Mon Sep 17 00:00:00 2001 From: Brandon Bocklund Date: Tue, 27 Jun 2023 12:12:54 -0400 Subject: [PATCH] MAINT: Support pycalphad 0.10.0 test database fixtures (#29) --- scheil/ordering.py | 5 +++-- setup.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scheil/ordering.py b/scheil/ordering.py index 5871d52..3e17d2e 100644 --- a/scheil/ordering.py +++ b/scheil/ordering.py @@ -117,8 +117,9 @@ def rename_disordered_phases(eq_result, ordering_records): Examples -------- >>> from pycalphad import Database, equilibrium, variables as v - >>> from pycalphad.tests.datasets import AL_C_FE_B2_TDB - >>> dbf = Database(AL_C_FE_B2_TDB) + >>> import pycalphad.tests.databases + >>> from importlib_resources import files + >>> dbf = Database(str(files(pycalphad.tests.databases).joinpath("alcfe_b2.tdb"))) >>> comps = ['AL', 'FE', 'VA'] >>> phases = list(dbf.phases.keys()) >>> eq_res = equilibrium(dbf, comps, ['B2_BCC'], {v.P: 101325, v.T: 1000, v.N: 1, v.X('AL'): [0.1, 0.4]}) diff --git a/setup.py b/setup.py index 5c0744b..7dfaab9 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def readme(fname): 'numpy', 'scipy', 'setuptools_scm[toml]>=6.0', - 'pycalphad>=0.9.1', + 'pycalphad>=0.10.0', ], extras_require={ 'dev': [