hydromodpy.spatial.protocols#

Protocol contracts for the spatial layer.

Spatial modules access data-layer services through Protocols defined here so the spatial package never imports the data package at module load time. The bootstrap registers the concrete implementations during application start-up; spatial code resolves them with the get_* helpers.

Functions

get_geology_data_source()

Return the registered geology data source, or raise if none is wired.

register_geology_data_source(source)

Register the concrete geology data source provided by the data layer.

Classes

GeologyDataSource(*args, **kwargs)

Read-only access to geology configuration and encoded grids.