navis.transforms.templates.TemplateRegistry¶
- class navis.transforms.templates.TemplateRegistry(scan_paths=True)[source]¶
Tracks template brains, available transforms and produces bridging sequences.
- Parameters:
scan_paths (bool) – If True will scan paths on initialization.
Methods
__init__
([scan_paths])bridging_graph
([reciprocal])Generate networkx Graph describing the bridging paths.
Clear caches of all cached functions.
find_all_bridging_paths
(source, target[, ...])Find all bridging paths from source to target.
find_bridging_path
(source, target[, via, ...])Find bridging path from source to target.
find_closest_mirror_reg
(template[, non_found])Search for the closest mirror transformation for given template.
find_mirror_reg
(template[, non_found])Search for a mirror transformation for given template.
find_template
(name[, non_found])Search for a given template (brain).
plot_bridging_graph
(**kwargs)Draw bridging graph using networkX.
register_path
(paths[, trigger_scan])Register path(s) to scan for transforms.
register_templatebrain
(template[, skip_existing])Register a template brain.
register_transform
(transform, source, ...[, ...])Register a transform.
register_transformfile
(path, **kwargs)Parse and register a transform file.
scan_paths
([extra_paths])Scan registered paths for transforms and add to registry.
shortest_bridging_seq
(source, target[, via, ...])Find shortest bridging sequence to get from source to target.
summary
()Generate summary of available transforms.
Attributes
Registered bridging transforms.
Registered mirror transforms.
templates
Registered template (brains).
Registered transforms (bridging + mirror).
transpaths
Paths searched for transforms.