From 02967d5de735dcc3b4c48a49a54d9c228a225a6c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 26 Aug 2026 16:46:59 +0000 Subject: [PATCH] ssz: use the module-level programme import in needs_daylight fitness.py already imports the module as `_programme` at the top and uses that idiom elsewhere (`_programme.SOCIABLE_USAGES`). The local re-import sat in the per-leaf hot path for no reason. Also snapshots the in-progress ab_ssz_search.csv; the full run is still going and will supersede it. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01MJ84Feep79Hhm3E4zZJmnB --- experiments/results/ab_ssz_search.csv | 2 ++ src/homemaker_layout/fitness.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/experiments/results/ab_ssz_search.csv b/experiments/results/ab_ssz_search.csv index 7f43c2a..ba92d1b 100644 --- a/experiments/results/ab_ssz_search.csv +++ b/experiments/results/ab_ssz_search.csv @@ -1,3 +1,5 @@ programme,seed,mode,urb_hard,urb_soft,urb_total,own_hard,own_soft,own_total,elapsed_s harbor-house,0,urb,16,39,55,16,39,55,80.2 harbor-house,1,urb,22,45,67,22,45,67,88.7 +harbor-house,2,urb,22,40,62,22,40,62,79.8 +harbor-house,0,floor,16,38,54,16,38,54,78.9 diff --git a/src/homemaker_layout/fitness.py b/src/homemaker_layout/fitness.py index 2acff45..51e4b33 100644 --- a/src/homemaker_layout/fitness.py +++ b/src/homemaker_layout/fitness.py @@ -472,8 +472,7 @@ class Fitness: which is the intended reading: a corridor or a covered courtyard is not failing when it has no daylit wall. """ - from . import programme as _pr - return self.usage_of(leaf) in _pr.DAYLIGHT_USAGES + return self.usage_of(leaf) in _programme.DAYLIGHT_USAGES # ------------------------------------------------------------------ # # Type superposition + collapse (homemaker-py-9o5)