Skip to content
Snippets Groups Projects
  • Lionel GUEZ's avatar
    bdd0ce41
    Rewrite the loop on vertices · bdd0ce41
    Lionel GUEZ authored
    Motivation: performance. We eliminate repeated reading of the same
    information from the shapefiles. If the length of the segment is
    smaller than 14 days then we re-use for the last part of the segment
    some of the properties from the first part. Also, we do not compute
    properties for the first part of the segment if the segment has no
    predecessor and for the last part of the segment if the segment has no
    successor.
    bdd0ce41
    History
    Rewrite the loop on vertices
    Lionel GUEZ authored
    Motivation: performance. We eliminate repeated reading of the same
    information from the shapefiles. If the length of the segment is
    smaller than 14 days then we re-use for the last part of the segment
    some of the properties from the first part. Also, we do not compute
    properties for the first part of the segment if the segment has no
    predecessor and for the last part of the segment if the segment has no
    successor.
cost_function.py 8.37 KiB