Skip to content

SSE — Space Syntax Engine v1.2.0

Latest

Choose a tag to compare

@napattan napattan released this 03 Dec 22:47
· 1 commit to main since this release

SSE — Space Syntax Engine v1.2.0

SSE — Space Syntax Engine v1.2.0 makes exact all-pairs (max_sources = 0) Angular Segment Analysis (Tulip-1024) the default across the Python/Numba core, QGIS 3.22–4.x (Qt6 Ready) Processing plugin, and native Rust CSR workstation/CLI/MCP binaries, adds full independent Python-vs-Rust parity on the 166,514-segment Bangkok Metropolis arterial graph, upgrades CLI auto-UTM projection, untracks legacy repository binary blobs in favor of GitHub Release assets, and introduces machine-readable CITATION.cff metadata and GitHub Actions CI.


Highlights & Breaking/Behavioral Improvements

1. Exact All-Pairs Default (max_sources = 0) & Honest Opt-In Sampling

  • Exact All-Pairs by Default: Set max_sources = 0 (max_sources_per_radius = 0) as the default across sse.core.solvers_segment, QGIS Processing (MAX_SOURCES), and native Rust (src/solvers_asa.rs, sse-cli, sse-desktop, sse-mcp), guaranteeing permutation-invariant exact centrality across all network scales.
  • Explicit Opt-In Approximation Semantics: When a user explicitly requests 0 < max_sources < N, SSE emits a UserWarning (Python) or stderr diagnostic (Rust), marks unsampled closeness/depth/node-count/NACH/NAIN entries as NaN rather than copying values from neighboring array indices, and scales Choice by N / len(sources).

2. Independent 166,514-Segment Bangkok Citywide Parity & Corrected Documentation

  • Exact All-Pairs Citywide Benchmark (Bangkok Metropolis Arterials, N = 166,514, R2000m, Tulip-1024, segment-length weighted):
    • SSE Python / Numba JIT (0.68.1, post-JIT single weighted pass): 7.30 s
    • SSE Rust CSR Core (sse-cli, simultaneous dual unweighted + weighted accumulators, 21 columns): 13.48 s
    • Independent Dual-CSV Parity (Python vs. Rust): R² = 0.99999994, Pearson r = 0.99999997, max|Δ| = 0.000050 (half-ULP of 4-decimal rounding; Node_Count_R2000m max|Δ| = 0.000000, Total_Depth_R2000m max|Δ| = 0.000001).
  • Benchmark Plate & Research Study Sync: Regenerated Figure 4 (docs/benchmarks/comparison_04_benchmark_summary_and_agents.png) directly from the independent exact all-pairs Python and Rust CSV exports, and corrected the analytical Hillier Diamond reference values in docs/RESEARCH_SPACE_SYNTAX_ENGINE.md (D_5 = 0.35199368, RRA = 1.420480, Integration [HH] = 0.703987).

3. Global Auto-UTM Python CLI (sse clean, sse solve)

  • Wired sse solve directly to CSRDualGraph and solve_angular_segment_analysis(max_sources_per_radius=0).
  • Added global WGS84-to-UTM auto-projection (supporting Northern and Southern hemispheres, e.g., EPSG:32630 London and EPSG:32756 Sydney) while preserving local planar metric CRS datasets untouched.
  • Deferred UTF-8 stdout reconfiguration inside main() so library imports remain side-effect-free.

4. Repository Hygiene, Academic Citation Metadata & CI

  • Clean Git Distribution: Untracked legacy committed .exe and .zip blobs from standalone/ (git ls-files "*.exe" "*.zip" is empty); standalone executables and sse_v1.2.0.zip are now distributed strictly via GitHub Releases.
  • Academic Readiness: Added CITATION.cff (cff-version: 1.2.0, ORCID https://orcid.org/0009-0006-4143-3162), CONTRIBUTING.md, and .github/workflows/ci.yml covering Rust tests, Python pytest, Flake8 linting, sse/core/ ↔ QGIS plugin SHA-256 mirror parity, and cross-manifest v1.2.0 synchronization across Cargo.toml, pyproject.toml, sse/__init__.py, sse/plugins/qgis_plugin/metadata.txt, and CITATION.cff.

Verified 3-Way Execution Speed & Mathematical Parity Summary

Benchmark Suite & Empirical Dataset Scale (N) UCL depthmapX v0.8.0 SSE Python / QGIS SSE Rust CSR Core Speedup (Python / Rust) Parity (R² & max|Δ|)
1. UCL Barnsbury Segment ASA (Tulip-1024) 178 segs (R400 + Rn) 48.00 ms 0.85 ms 0.83 ms 56.5× / 57.8× R² = 1.000000 (0.0000)
2. Bangkok On Nut Multi-Radius ASA (Tulip-1024) 30,493 segs (R800..Rn) 870.00 s 21.08 s (1.86 s Fast) 15.98 s 41.3× / 54.4× R² = 1.000000 (0.0000)
3. Bangkok On Nut Topological Axial (16 Metrics) 30,493 lines (Rn, R3, R5) 48.50 s 1.82 s 1.39 s 26.6× / 34.9× R² = 1.000000 (0.0000)
4. Bangkok Metropolis Citywide Arterials (Exact CSR) 166,514 segs (R2000m, exact all-pairs) DNF / Freeze 7.30 s (Numba JIT) 13.48 s (Dual Unw+Wgt) 1.85× (Py/Rust*) R² = 0.99999994 (max|Δ| = 0.000050)
5. Architectural Spatial Visibility (VGA + Isovists + Agents) 2,101 cells (1.04M edges) 4,800.0 ms 574.0 ms (Python Core) 134.14 ms 35.8× (Rust CSR) R² = 1.000000 (0.0001)

*Row 4 note: Both engines ran 100% exact all-pairs (max_sources = 0) independently on bangkok_citywide_arterials_utm47n.mif. Python/Numba (7.30 s post-JIT warmup) solves a single weighted pass, whereas Rust sse-cli (13.48 s) simultaneously computes both unweighted and weighted depthmapX accumulators (21 output columns).


Verification Summary

  • Rust Unit Tests (cargo test --workspace): 16/16 passed (0 failed).
  • Rust CLI Parity Benchmark (sse-cli.exe benchmark): 9/9 suites passed (UL-02/03, UL-04, UL-08, Presets 1–5).
  • Python Test Suite (pytest tests/): 26/26 passed (0 failed), including N = 3,000 permutation-invariance, opt-in NaN sampling guard, global auto-UTM CLI, 9/9 sse/core/ ↔ QGIS plugin SHA-256 mirror parity, and cross-manifest version checks.
  • QGIS 3.22–4.x (Qt6 Ready) & Flake8: 0 Flake8 violations, Qt6 / QGIS 4 compliant (sse_v1.2.0.zip, 32 files, single sse/ root).

Release Assets & SHA-256 Checksums

Asset Description Size (Bytes) SHA-256
sse-desktop.exe Standalone Native Rust Workstation GUI (egui/eframe, Street Networks + VGA/Isovists/Agents + MCP bridge) 9,868,288 291864781f006f7982bbaebf47acf8cfd6b7f8780fcefb8b9fef6d2a31d6caec
sse-cli.exe Native Rust Headless Batch Solver & 9-Suite Mathematical Parity Runner 1,905,152 86cbe62675a2d8b93b474b690ac3a8026a30a800e13d24ba61991aff6bf001b7
sse-mcp.exe 9-Tool JSON-RPC 2.0 Model Context Protocol (MCP) Server (stdio + 127.0.0.1:9884 GUI bridge) 4,423,680 6ce6fc99e5c20d13af424bd5db6ca3bee881caec7ce649f67ab75c28a2809a99
sse_v1.2.0.zip Official QGIS 3.22–4.x (Qt5/Qt6 Ready) Street Network Plugin (Plugins → Install from ZIP) 169,072 db3295215d5ce7648094fad77c509d9a33f97ecba3f13492e8bc4340a50bcd52