Repository navigation
An advanced DST site that burns its waste keeps the metal and glass it receives - #133
Merged
Merged
Conversation
…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>
There was a problem hiding this comment.
🟢 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_TYPESconstant 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
On
am-waste-flow, the branch WasteMAP's advanced DST runs on, a site thatcombustsnow 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_TYPESnames the two, worded as onmain, where the same change makes incineration stop burning them everywhere (SWEET PR tomain, linked below).advanced_dst_city._depositedreplaces_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
sitesnow shows the ash at a burning site, andsites_receivedis unchanged.WasteMAP's
am-riversizes "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 whenam-waste-flownext takesmain.Acceptance criteria
combustssite'ssitesequals the metal and glass it receives, plus the reject of the rest.Definition of done
Acceptance criteria met · tests pass (683 locally) · changelog updated · reviewed and merged.
Related
main)am-waste-flow)main)am-river)🤖 Generated with Claude Code