Skip to content

Pin nshmdb to 2025.12.1, compatible with this project's nshmdb.db - #147

Closed
AndrewRidden-Harper wants to merge 1 commit into
pegasusfrom
pin-nshmdb-compatible-version
Closed

Pin nshmdb to 2025.12.1, compatible with this project's nshmdb.db#147
AndrewRidden-Harper wants to merge 1 commit into
pegasusfrom
pin-nshmdb-compatible-version

Conversation

@AndrewRidden-Harper

Copy link
Copy Markdown
Contributor

The latest nshmdb package is incompatible with the DB for generating realisations, so we pin to the most recent compatible version.

nshmdb>=2025.12.1 resolved to 2026.8.3, but 2026.8.1+ changed
get_rupture_faults()'s query to select f.fault_system and requires
NSHMDB to be used as a context manager -- neither matches the
nshmdb.db this project's 293 realisations were actually built from
(sha256 00e256480618cd15e11fbf744037d037bf3fc2d523fb977ee30e0b84a640bc57,
see cs_nshm_2022 commit 646055c), whose fault table has no fault_system
column, and predates the context-manager requirement.

Verified: nshm2022_to_realisation.generate_realisation() now completes
end-to-end against the real database (rupture 101091), unmodified --
no code change needed once the version is pinned to what the data
actually matches.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tr4WwR6mYXdKrroQ3XKAnJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants