Skip to content

Dynamic NPIs can create short lifting gaps at renewal time #1564

@HenrZu

Description

@HenrZu

Bug description

Dynamic NPIs are renewed only after the current NPI has expired. Because contact dampings use a one-day smoothing window for lifting, the simulation can already advance through a partial lifting interval before the keep-alive renewal is applied.

This can create small artificial spikes in compartments such as Exposed, even though the threshold is still exceeded and the NPI should stay active continuously.

Version

Any

To reproduce

The effect is visible in tutorials/tutorial11.py with threshold-based dynamic NPIs. In the dynamic-NPI scenario, Exposed shows short upward spikes around renewal times.

Relevant log output

Add any relevant information, e.g. used compiler, screenshots.

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::bugBugs found in the software

Type

Projects

Status

✅ Done (Sprint)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions