revrt.routing.cli.utilities.routing_layer_mover#
- routing_layer_mover(save, cost_fpath, out_fp, route_attrs, job_name, route_cl, route_fl, route_bl)[source]#
Yield temporary routing-layer path and optionally persist it
- Parameters:
save (
bool) – Whether to capture and persist routing layer output.cost_fpath (path-like) – Path to the source layered cost dataset used for coordinates.
out_fp (path-like) – Output route-table path. Routing layers are written under
out_fp.parent / "extra_outputs".route_attrs (
dict) – Route attribute mapping. The first route entry is used to derivepolarityandvoltagelabels for the output name.job_name (
str) – Job name included in the saved routing-layer filename.route_cl (
list) – List of dictionaries representing cost layer definitions used to build the output hash suffix.route_fl (
list) – List of dictionaries representing friction layer definitions used to build the output hash suffix.route_bl (
list) – List of dictionaries representing barrier layer definitions used to build the output hash suffix.
- Yields:
path-like or
None– Temporary zarr directory path used as the routing-layer swap location. Whensaveis True the directory contents are also persisted to a named output underout_fp.parent / "extra_outputs"; otherwise the temporary directory is removed on context exit.