Library / Code module
Program capacity, staffing and break-even budget
program_capacity_budget
Compute seats, people turned away, staff per session, cost, revenue, net, cost per participant, break-even fee and break-even attendance for a session-based program, with named scenarios.
ATTRIBUTION.md4.9 KBLICENSE1.0 KBONET-ATTRIBUTION.md6.3 KBPROCEDURE.md2.7 KBREADME.md3.9 KBTOOLS.md2.0 KBcomponent.json11.1 KBexamples/known_good.json2.3 KBexamples/known_wrong.json522 byteskit_schema.py11.4 KBprogram_capacity_budget.py6.9 KBtest_package.py6.8 KB
Full files in your harness.
What it takes and gives
- Runs with
- Python 3.10 or later
- Command
python3 program_capacity_budget.py < input.json- Function
program_capacity_budget.run- Required input
- program
Cases it covers
- Known wrong example: A scenario changes a field named price, which the program does not have, so the comparison would be silently wrong. Refused as unknown scenario field.
- input invalid: refused with exit code 2
- input not json: refused with exit code 2
- unknown scenario field: refused with exit code 2
- duplicate scenario name: refused with exit code 2
- scenario value invalid: refused with exit code 2
Limits and scope
- Limits
- Every session is identical; attendance is an input, not a forecast. Staff are paid only for session hours. Taxes, refunds, no-shows and price elasticity are not modelled. Money is rounded to two decimals per line, so totals can differ from summed lines by a cent.
- Work activities
- Plan community programs or activities for the general public; Plan conferences, programs, or special events; Plan special events.
Details
- Kind
- Code module
- Licence
- MIT
- Declared effects
- runs commands
- Source
- github.com/alisonjieli-png/loop-engine/tools/creative_originals/occupation_task_kits/items/program_capacity_budget
- Size
- 12 files, 59.8 KB
- Identity
library.supply.creative_originals.ec7260eaf066e02d28b0edfa.68dd03b1f1fae60a- Version
68dd03b1f1fae60a94673faacb0309c39a23c4b278a4c2d1ddfd9fdbcc7f1714
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Where it is shown
- Records, schedules and budgetsDeterministic skills
Related components
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.