FAILURE MAP
← Case archive

FA-71023 / Weather index computation / Member archive

Monthly heating and cooling degree days: daily mean arithmetic · case 03

Half-degree means lose the half before the rounding rule sees them.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

daily entries are [tmax_F, tmin_F] with None for missing. A day with a missing value reuses the previous valid daily mean; missing days before any valid day are skipped. Round the daily mean half up to a whole degree, then HDD += 65 - m if m < 65, CDD += m - 65 if m > 65. Return [HDD, CDD].

Why this case matters

Energy billing normalisation and utility demand models use monthly HDD/CDD.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
month 6[21, 68][19, 73]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗