MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / read_solution

Function read_solution

tests/helpers.py:24–30  ·  view source on GitHub ↗

Lightweight wrapper around ``pyvrp.read.read_solution()``, reading solution files relative to the current directory.

(where: str, *args, **kwargs)

Source from the content-addressed store, hash-verified

22
23
24def read_solution(where: str, *args, **kwargs):
25 """
26 Lightweight wrapper around ``pyvrp.read.read_solution()``, reading solution
27 files relative to the current directory.
28 """
29 this_dir = pathlib.Path(__file__).parent
30 return _read_solution(this_dir / where, *args, **kwargs)
31
32
33def sleep(duration, get_now=time.perf_counter):

Calls

no outgoing calls