Skip to content

Heat demand for new residences breaks if no 2005–present residences exist for a building type #3485

Description

@jort-wolda

Context

New residences get their heat demand per residence set equal to the heat demand of residences built 2005–present of the same building type.

Issue

If a dataset has 0 residences of a given residence type from 2005–present, this lookup will either error or return 0 heat demand for the new residences.

Currently not occurring: some datasets do have 0 semi-detached residences from 2005–present, but building new semi-detached residences isn't possible there. Some datasets come close, Rozendaal has only 3 terraced houses from 2005–present.

Steps to reproduce

Not currently reproducible, requires a dataset with 0 residences of a buildable residence type from 2005–present, which doesn't yet exist.

Version: production/2026-09

Proposed solution

Add a fallback for when the 2005–present value is 0 or missing. Possibly default to the nearest available construction period or add a hard coded back-up value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions