Skip to content

An advanced DST site that burns its waste keeps the metal and glass it receives - #133

Merged
HughRunyan merged 1 commit into
am-waste-flowfrom
adst-incinerator-keeps-metal-and-glass
Dec 2, 2026
Merged

HughRunyan merged 1 commit into
am-waste-flowfrom
adst-incinerator-keeps-metal-and-glass

Conversation

@HughRunyan

@HughRunyan HughRunyan commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

On am-waste-flow, the branch WasteMAP's advanced DST runs on, a site that combusts now deposits the metal and glass it receives and burns the rest. Metal and glass don't burn. It still deposits the reject of what burns (combustion_reject_rate, 0).

  • constants.UNBURNABLE_TYPES names the two, worded as on main, where the same change makes incineration stop burning them everywhere (SWEET PR to main, linked below).
  • advanced_dst_city._deposited replaces _deposited_share. It is used for a site's own mass and for its surplus.

Methane doesn't move: metal and glass make no methane. The mass flow's sites now shows the ash at a burning site, and sites_received is unchanged.

WasteMAP's am-river sizes "Routed to incineration" from the burnable waste disposed of, so the site burns the share the city reports (WasteMAP PR linked below).

The rest of main's change (incineration eligibility in the city model and city DST) is not brought across here. It arrives when am-waste-flow next takes main.

Acceptance criteria

  • A combusts site's sites equals the metal and glass it receives, plus the reject of the rest.
  • Emissions are unchanged.

Definition of done

Acceptance criteria met · tests pass (683 locally) · changelog updated · reviewed and merged.

Related

🤖 Generated with Claude Code

…t receives

Metal and glass don't burn. A combusts site deposits all the metal and glass
it receives, as its ash, and burns the rest. They make no methane, so
emissions don't move; the mass flow's sites shows the ash.
constants.UNBURNABLE_TYPES names the two, as on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HughRunyan HughRunyan added the enhancement New feature or request label Nov 19, 2026
Copilot AI lite review requested due to automatic review settings November 19, 2026 18:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain, and the changes are covered by targeted tests for material retention, intake reporting, reject handling, and unchanged emissions.

No open issues 🎉

What changed in this PR

Updates city-level advanced DST incineration so combusting sites retain received metal and glass while applying combustion reject handling only to burnable waste, without changing methane emissions.

Changes:

  • Added the shared UNBURNABLE_TYPES constant for metal and glass.
  • Replaced scalar deposition logic with per-waste-type deposition for site and surplus streams.
  • Updated incineration tests and the November changelog.
File Description
tests/​test_adst_city_incineration.py Adds coverage for metal and glass retention, site intake reporting, reject handling, and unchanged emissions.
SWEET_python/​constants.py Defines the shared UNBURNABLE_TYPES constant for metal and glass.
SWEET_python/​advanced_dst_city.py Applies per-waste-type deposition logic to combusting sites and their surplus streams.
changelog/​2026-11.md Documents the advanced DST incineration mass-flow behavior change.

Review effort: Lite

@HughRunyan
HughRunyan merged commit 2ee81fd into am-waste-flow Dec 2, 2026
3 checks passed
@HughRunyan
HughRunyan deleted the adst-incinerator-keeps-metal-and-glass branch December 2, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants