Commit graph

40 commits

Author SHA1 Message Date
Jun-te Kim
dfd05ba28b tests files 2026-06-04 11:47:42 +00:00
Jun-te Kim
bf166e7f46 test suite to pick it up 2026-06-02 15:33:46 +00:00
Khalim Conn-Kowlessar
68401c517a refactor: lift-and-shift packages/domain/src/domain/ml → domain/sap10_ml
Sibling migration to the sap10_calculator move — `domain.ml` now lives
at the root-level layout (`domain/sap10_ml/`) matching the pattern
already used by `domain.addresses`, `domain.tasks`, `domain.postcode`,
and `domain.sap10_calculator`.

Changes:

- `git mv packages/domain/src/domain/ml → domain/sap10_ml` (19 files;
  history preserved).
- Subpackage rename: `domain.ml` → `domain.sap10_ml`. 32 references
  rewritten across .py and .md files: 11 internal + 21 external
  (datatypes/epc/domain/mapper.py, 14 files in domain/sap10_calculator,
  2 backend tests, 2 ADRs, 1 README, 1 design doc).
- Path-string updates: `pytest.ini` testpath
  `packages/domain/src/domain/ml/tests` → `domain/sap10_ml/tests` so
  ML tests stay in the default auto-discovered sweep. `CONTEXT.md`
  also updated.

`packages/domain/src/domain/` is now empty — the workspace `domain/`
tree has been fully migrated. Together with the `domain/__init__.py`
deletions from the sap10_calculator commit (29ac35cc), `domain` is
now a single root-level namespace package with subpackages
{addresses, sap10_calculator, sap10_ml, tasks} + the standalone
`postcode.py` module.

Verified:

- Focused sweep (backend mapper-chain + sap10_calculator worksheet
  e2e + golden fixtures): 99 passed / 19 failed — identical baseline.
- Wider sweep (all sap10_calculator + sap10_ml): 1654 passed / 20
  failed (same pre-existing failures).
- domain/sap10_ml/tests: 210/210 PASSED at new path.
- Pyright net-zero: heat_transmission.py 13, cert_to_inputs.py 35,
  mapper.py 33, rdsap_uvalues.py 1 (all unchanged from baseline).

Note: `packages/domain/pyproject.toml` still declares
`packages = ["src/domain"]` for the hatchling wheel — that target
directory is now empty and the wheel build is effectively a no-op.
Retiring the workspace package or repointing the wheel is a follow-up.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 13:01:35 +00:00
Khalim Conn-Kowlessar
87b6045c97 fixed merge conflicts from main 2026-05-26 11:21:09 +00:00
Khalim Conn-Kowlessar
eb42cb88a1 slice 14a: ml_training_data pkg + sample.py (CSV filter + random sample)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 17:39:43 +00:00
Khalim Conn-Kowlessar
611ff24eb6 scaffolding for ml pipeline 2026-05-16 14:15:56 +00:00
Daniel Roth
e3646162de new files types inferred from file names 🟥 2026-05-13 13:09:40 +00:00
Daniel Roth
f0300eb8ff Replace new-deal MagicPlan trigger to use outcome=="surveyed" 🟥 2026-05-12 08:57:24 +00:00
Daniel Roth
f56dba4ad1 use pytest-postgresql in db tests instead of mocking and checking sql strings 2026-05-08 10:13:44 +00:00
Daniel Roth
55d7b91171 map magicplan base models to data classes 🟩 2026-05-05 15:46:13 +00:00
Daniel Roth
18a58486af Define dataclasses to represent API json 🟩 2026-05-05 10:28:07 +00:00
Daniel Roth
9e7d8c004f Merge branch 'main' into feature/magicplan-api-client 2026-05-01 13:34:00 +00:00
Daniel Roth
bbd653f83c PasHub: PashubService class 🟪 2026-04-29 14:50:59 +00:00
Daniel Roth
f6ab407b33 Parse Magic Plan XML 🟩 2026-04-28 15:11:03 +00:00
Daniel Roth
d12396ad9c Merge branch 'main' into feature/read-site-notes-pdf 2026-04-17 14:31:49 +00:00
Daniel Roth
4f3c7894ae Map to RdSapSiteNotes from site notes JSON 🟥 2026-04-16 13:54:03 +00:00
Daniel Roth
9ccbfc2d11 Extract data from xml 🟥 2026-04-14 16:24:46 +00:00
Daniel Roth
517e1287a8 Map to domain from site notes 🟩 2026-04-13 13:00:08 +00:00
Daniel Roth
a7d460a2d4 pashub rdsap sitenotes pdf output to dataclasses 2026-04-13 11:35:02 +00:00
Daniel Roth
d95be6ce65 first draft dataclasses with loading tests 2026-04-10 11:33:17 +00:00
Daniel Roth
21ca0d7649 diff checker for pashub trigger 🟥 2026-04-08 15:25:50 +00:00
Jun-te Kim
da3b753b46 merge conflicts resovled and reviweed my code 2026-03-30 17:09:41 +00:00
Khalim Conn-Kowlessar
d287df1b82 hard coded buckets 2026-03-27 01:46:58 +00:00
Jun-te Kim
76dbde602b added tests and hubspot client 2026-03-13 13:27:52 +00:00
Khalim Conn-Kowlessar
042140afec added export to pytest.ini 2026-02-26 12:45:52 +00:00
Khalim Conn-Kowlessar
bf3d6f4d51 working on integration test 2026-02-23 12:13:59 +00:00
Daniel Roth
70fd417c4a Check whether plan with EPC goal is compliant 🟥 2026-02-12 15:04:02 +00:00
Khalim Conn-Kowlessar
7bb7972549 fixed merge conflicts with main 2026-02-07 21:19:40 +00:00
Khalim Conn-Kowlessar
2631b4aa20 Roof and wall tests green 2026-02-02 18:47:42 +00:00
ef40363a69 run all tests 2026-01-28 15:54:38 +00:00
Daniel Roth
c073a4cb43 Parser factory chooses parser class based on filepath 🟥 2026-01-19 11:08:30 +00:00
Khalim Conn-Kowlessar
9f46b23b72 added testing automation with tox and added new test to handle error case when fetching address from epc registry 2025-05-14 15:34:12 +01:00
Khalim Conn-Kowlessar
965e8e99d3 fixed unit tests 2023-10-05 16:04:12 +01:00
Khalim Conn-Kowlessar
f8a4884deb fixing unit tests for Property class 2023-09-13 15:50:20 +01:00
Khalim Conn-Kowlessar
9c164c202f added pythonpath to pytest.ini 2023-09-12 16:01:38 +01:00
Khalim Conn-Kowlessar
caedd79523 Added unit tests for recommendation utils and still restructuing repo 2023-07-21 11:49:58 +01:00
Khalim Conn-Kowlessar
d774df4697 moved .coveragerc and pytest.ini files to model_data 2023-07-05 13:07:55 +01:00
Khalim Conn-Kowlessar
446531b974 renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
Khalim Conn-Kowlessar
d779cc1b4c added .coveragerc file 2023-06-14 10:41:17 +01:00
Khalim Conn-Kowlessar
5036f116c8 replaced makefile with pytest.ini 2023-06-14 10:34:50 +01:00