mapmaker.properties.pathways module

mapmaker.properties.pathways.parse_path_lines(line_ids)[source]
mapmaker.properties.pathways.parse_route_nodes(node_ids)[source]
mapmaker.properties.pathways.parse_nerves(node_id_string)[source]
class mapmaker.properties.pathways.ResolvedPath[source]

Bases: object

A path described in terms of numeric feature ids.

property as_dict: dict[str, Any]

The numeric feature ids that make up a path.

extend_lines(geojson_ids: list[int])[source]

Associate line segments with the path.

Arguments:

geojson_ids

Line segment numeric GeoJSON ids

extend_nerves(geojson_ids: list[int])[source]

Associate nerve cuffs with the path.

Arguments:

geojson_ids

Nerve cuff numeric GeoJSON ids

extend_nodes(geojson_ids: list[int])[source]

Associate nodes with the path.

Arguments:

geojson_ids

Node numeric GeoJSON ids

set_model_id(model_id: str)[source]

Set an external indentifier for the path.

Arguments:

model_id

The path’s external identifier (what it models)

class mapmaker.properties.pathways.Route(path_id, route)[source]

Bases: object

property end_nodes
property nodes
property path_id
property start_nodes
property through_nodes
class mapmaker.properties.pathways.ResolvedPathways(flatmap: FlatMap)[source]

Bases: object

property node_paths: dict[int, list[str]]
property paths_dict: dict[str, dict]
property type_paths: dict[str, list[str]]
add_connectivity(path_id: str, line_geojson_ids: list[int], model: str, path_type: PATH_TYPE, node_feature_ids: set[str], nerve_features: list[mapmaker.flatmap.feature.Feature])[source]
add_pathway(path_id: str, model: str | None, path_type: PATH_TYPE, route: Route, lines: list[str], nerves: list[str])[source]
class mapmaker.properties.pathways.Path(source, path, trace=False)[source]

Bases: object

property connectivity: Graph
property id
property label
property lines
property models
property nerves
property path_type
property route
property source
property trace
class mapmaker.properties.pathways.ConnectivityModel(description)[source]

Bases: object

property id
property network
property path_ids
property paths
property publications
property source
class mapmaker.properties.pathways.ConnectionSet(model_id)[source]

Bases: object

add(path_id: str, viewer_kind: str, geojson_id: int, connector_ids: list[int])[source]
as_dict()[source]
class mapmaker.properties.pathways.Pathways(flatmap, paths_list)[source]

Bases: object

static make_list(lst)[source]
property connectivity
add_connection_set(connection_set)[source]
update_line_or_nerve_properties(properties)[source]
add_connectivity_model(model_uri, properties_data, path_filter=None, traced_paths=None)[source]
add_connectivity_path(path_uri, properties_data, path_filter=None, traced_paths=None)[source]
add_connectivity(connectivity)[source]
generate_connectivity(networks: Iterable[Network])[source]
knowledge()[source]