---
title: "pycalphad 0.12.0 Breaking Changes on PyPI | Since.dev"
description: "What each pycalphad release removed, renamed or changed: 16 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pycalphad
last_updated: 2026-12-04
---

# pycalphad breaking changes

pycalphad 0.12.0 (November 10, 2026) is its newest release with breaking changes, 16 of them. The first: Removed BinaryStrategy. Every breaking API change we have recorded in pycalphad on PyPI: 16 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.12.0`, released November 10, 2026. [Source repository](https://github.com/pycalphad/pycalphad)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## pycalphad 0.12.0 breaking changes

pycalphad 0.12.0, released November 10, 2026: 16 breaking changes.

- **Removed** `BinaryStrategy`  

BinaryStrategy was merged into TielineStrategy. Use TielineStrategy instead. [github.com](https://github.com/pycalphad/pycalphad/blob/0.12.0/CHANGES.rst)
- **Removed** `generate_dof`  

The deprecated generate_dof helper utility was removed. Stop calling it. [github.com](https://github.com/pycalphad/pycalphad/blob/0.12.0/CHANGES.rst)
- **Removed** `TernaryStrategy`  

TernaryStrategy was merged into TielineStrategy. Use TielineStrategy instead. [github.com](https://github.com/pycalphad/pycalphad/blob/0.12.0/CHANGES.rst)
- **Behavior changed**  

Model contributions must now return their energies per mole of formula units, not per mole of atoms. Update custom model contributions to match. [github.com](https://github.com/pycalphad/pycalphad/blob/0.12.0/CHANGES.rst)
- **Behavior changed** `Model.ast`  

Model.ast was refactored to be in formula units. Code that reads it must expect formula-unit values. [github.com](https://github.com/pycalphad/pycalphad/blob/0.12.0/CHANGES.rst)
- **Signature changed** `pycalphad.io.tdb.write_tdb`  

Was def write_tdb(dbf, fd, groupby='subsystem', if_incompatible='warn'); now def write_tdb(dbf, fd, groupby='subsystem', if_incompatible='warn', maxlen=78). [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.mapping.BinaryStrategy`  

Was class BinaryStrategy(MapStrategy); now class BinaryStrategy(TielineStrategy). [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.mapping.plot_binary`  

Was def plot_binary(strategy: BinaryStrategy, x: v.StateVariable = None, y: v.StateVariable = None, ax=None, tielines=1, label_nodes=False, legend_generator=phase_legend, tieline_color=(0, 1, 0, 1), tie_triangle_color=(1, 0, 0, 1), \*args... [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.mapping.plot_ternary`  

Was def plot_ternary(strategy: TernaryStrategy, x: v.StateVariable = None, y: v.StateVariable = None, ax=None, tielines=1, label_nodes=False, legend_generator=phase_legend, tieline_color=(0, 1, 0, 1), tie_triangle_color=(1, 0, 0, 1)... [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.mapping.plotting.plot_invariants`  

Was def plot_invariants(ax, strategy: Union\[BinaryStrategy, TernaryStrategy\], x: v.StateVariable, y: v.StateVariable, phase_colors, label_end_points: bool = False, tie_triangle_color=(1, 0, 0, 1)); now def plot_invariants(ax, strategy... [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.mapping.plotting.plot_tielines`  

Was def plot_tielines(ax, strategy: Union\[BinaryStrategy, TernaryStrategy\], x: v.StateVariable, y: v.StateVariable, phase_colors, tielines=1, tieline_color=(0, 1, 0, 1)); now def plot_tielines(ax, strategy: TielineStrategy, x... [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.mapping.TernaryStrategy`  

Was class TernaryStrategy(MapStrategy); now class TernaryStrategy(TielineStrategy). [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.mapping.utils.degrees_of_freedom`  

Was def degrees_of_freedom(point: Union\[Point, Node\], components: list\[str\], num_potential_conditions: int); now def degrees_of_freedom(point: Union\[Point, Node\], components: list\[str\], num_fixed_potentials: int). [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.tests.test_mapping_strategy.BinaryStrategy`  

Was class BinaryStrategy(MapStrategy); now class BinaryStrategy(TielineStrategy). [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.tests.test_mapping_strategy.plot_ternary`  

Was def plot_ternary(strategy: TernaryStrategy, x: v.StateVariable = None, y: v.StateVariable = None, ax=None, tielines=1, label_nodes=False, legend_generator=phase_legend, tieline_color=(0, 1, 0, 1), tie_triangle_color=(1, 0, 0, 1)... [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)
- **Signature changed** `pycalphad.tests.test_mapping_strategy.TernaryStrategy`  

Was class TernaryStrategy(MapStrategy); now class TernaryStrategy(TielineStrategy). [pypi.org](https://pypi.org/project/pycalphad/0.12.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
