Skip to content

Correct staff count log#1806

Merged
tbhallett merged 3 commits intomasterfrom
molaro/capabilities-coefficient-in-staff-counts
Feb 9, 2026
Merged

Correct staff count log#1806
tbhallett merged 3 commits intomasterfrom
molaro/capabilities-coefficient-in-staff-counts

Conversation

@marghe-molaro
Copy link
Copy Markdown
Collaborator

When logging the number of staff, the log_number_of_staff function compares capabilities_today - which rescales the _daily_capabilities by the capabilities_coefficient - with _daily_capabilities_per_staff - which does not. Unless I am missing something obvious, this would therefore lead to an incorrect estimation of the staff count.

As raised in Issue #1618, it seems dangerous to dynamically incorporate the capabilities_coefficient via capabilities_today; the rescaling should occur once, upon initialisation, to avoid issues such as this.

@marghe-molaro marghe-molaro marked this pull request as ready for review February 6, 2026 10:59
@tbhallett
Copy link
Copy Markdown
Collaborator

Thanks. Good spot.

I agree with your diagnosis here.

I also like your prescription:

... the rescaling (by capabilities_coefficient) should occur once, upon initialisation, (as opposed to day-by-day) to avoid issues such as this.

We could merge this now. Or, should we make this change that you propose here?

@marghe-molaro
Copy link
Copy Markdown
Collaborator Author

Could we merge this for now so that this fix is in, and then I'll get to Issue #1618 asap?

@tbhallett
Copy link
Copy Markdown
Collaborator

Sure. Let’s merge now.

@tbhallett tbhallett merged commit 7253f1a into master Feb 9, 2026
68 checks passed
@tbhallett tbhallett deleted the molaro/capabilities-coefficient-in-staff-counts branch February 9, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants