mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-19 08:53:17 +00:00
`restrict_to_considered_measures` filtered candidates only *after* every generator had run, so an excluded measure still queried the catalogue. That crashed properties with a lodged secondary heater: the live `material.type` enum has no `secondary_heating_removal` value, so the query raised a psycopg2 `InvalidTextRepresentation` before the allowlist could drop it. `_candidate_recommendations` now pairs each generator with the measure types it can emit and runs it only when the allowlist admits one of them (None = all), so an excluded measure never reaches the catalogue. `restrict_to_considered_measures` still trims disallowed Options off the multi-Option survivors. Add `--exclude-measures` to run_modelling_e2e (allowlist minus the excluded set) for excluding one measure without enumerating the rest. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| ara_first_run_pipeline.py | ||
| audit_generator_orchestrator.py | ||
| audit_generator_unit_of_work.py | ||
| bulk_upload_finaliser_orchestrator.py | ||
| classifiable_column.py | ||
| ingestion_orchestrator.py | ||
| landlord_description_overrides_orchestrator.py | ||
| magic_plan_orchestrator.py | ||
| modelling_orchestrator.py | ||
| postcode_splitter_orchestrator.py | ||
| property_baseline_orchestrator.py | ||
| sharepoint_renamer_orchestrator.py | ||
| task_orchestrator.py | ||