navis 1.4.0
  • Install
  • Quickstart
  • Tutorials
  • API
  • Changelog
  • Github
  • Ecosystem
  • Site
    • Page
        • navis.transforms.templates.TemplateRegistry.shortest_bridging_seq
          • TemplateRegistry.shortest_bridging_seq()

    navis.transforms.templates.TemplateRegistry.shortest_bridging_seq¶

    TemplateRegistry.shortest_bridging_seq(source, target, via=None, inverse_weight=0.5)[source]¶

    Find shortest bridging sequence to get from source to target.

    Parameters:
    • source (str) – Source from which to transform to target.

    • target (str) – Target to which to transform to.

    • via (str | list of str) – Waystations to traverse on the way from source to target.

    • inverse_weight (float) – Weight for inverse transforms. If < 1 will prefer forward transforms.

    Return type:

    tuple

    Returns:

    • sequence ((N, ) array) – Sequence of registrations that will be traversed.

    • transform_seq (TransformSequence) – Class that collates the required transforms to get from source to target.

    Back to top

    Source

    © Copyright 2018, Philipp Schlegel.
    Created using Sphinx 5.3.0.