Repository navigation
v5.6.0
·
10 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
What's New
Roof-mounted objects such as solar panels, vents and chimneys are now reported on each roof. This is also the first release published through the approved release workflow with PyPI trusted publishing.
Features
- Roof objects per roof (#279): for each requested roof object class (15 classes, from A/C Condenser Unit to Skylight), the roof file gets
<x>_present,<x>_count,<x>_area_<unit>and<x>_confidence, the building file gets them asprimary_child_roof_<x>_*, and the rollup asprimary_roof_<x>_*. Objects belong to the roof that the Feature API names as their parent. The area is the sum of the objects' clipped areas, so a multiparcel object reports only its share on each parcel. A class that is not available at the AOI's system version is null. Request theroof_objectsandcommercial_roof_objectspacks to get all 15 classes. Builds on a prototype by @mlopeman (#278). - Documentation site built with MyST (#249).
Bug Fixes
- Damage Conflation pagination restarts once on
BAD_CURSORand rejects a page from another resource (#274). _safe_intersection_areano longer raises on a geometry that cannot be repaired (#276).- The API key and addresses are kept out of retry logs, cache errors and cache hashes (#265).
Breaking Changes
- Python 3.12 is no longer supported. nmaipy needs Python 3.13 or newer (#266).
- Removed
get_coverage_from_survey_ids,get_surveys_from_idandthreaded_get_coverage_from_survey_idsfromcoverage_utils, thestringcasedependency and the workshop zip (#271).
Deprecations (removed in 6.0)
GriddedApiClient.should_grid_aoi,max_aoi_area_sqmandgrid_cell_size(nowNone;FeatureApigrids byMAX_AOI_AREA_SQM_BEFORE_GRIDDING), andget_survey_resource_id_from_survey_id_query(#271).nmaipy.constants.refresh_class_descriptions: useFeatureApi.refresh_class_descriptions(#276).
Notes
- Packaging moved to hatchling, and the development environment to pixi (#249). Users who install nmaipy from PyPI or conda-forge are not affected.
- Releases are now built, tagged and published by an approved workflow with trusted publishing and attestations (#269). A stable release checks first that the conda-forge recipe can build it (#270).
- Every pull request now runs the tests, a wheel install check, ruff, ty, an import-cycle check (#265, #266, #276), offline golden export tests (#250) and, where relevant, an offline memory benchmark (#273).
Memory benchmark
Peak memory (MiB) and wall time (seconds) of the offline benchmark export, python -m tests.golden.benchmark.
| aois | peak_main_rss_mib | peak_worker_rss_mib | peak_tree_pss_mib | wall_seconds |
|---|---|---|---|---|
| 1000 | 345.4 | 419.1 | 891.5 | 86.5 |
| 10000 | 676.4 | 421.5 | 1510.2 | 865.8 |
| 100000 | 1762.6 | 425.7 | 1719.9 | 8931.4 |
Commit 4e980466382350357e17a4060721fedcd2b1a465, Python 3.14.10, platform Linux-7.0.0-1020-azure-x86_64-with-glibc2.43, 2 CPUs.