MCPcopy Index your code
hub / github.com/PyVRP/PyVRP / read

Function read

tests/helpers.py:15–21  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

13
14@lru_cache
15def read(where: str, *args, **kwargs):
16 """
17 Lightweight wrapper around ``pyvrp.read.read()``, reading problem files
18 relative to the current directory.
19 """
20 this_dir = pathlib.Path(__file__).parent
21 return _read(this_dir / where, *args, **kwargs)
22
23
24def read_solution(where: str, *args, **kwargs):

Callers 15

test_X_instanceFunction · 0.90
ok_smallFunction · 0.90
ok_small_prizesFunction · 0.90
rc208Function · 0.90
prize_collectingFunction · 0.90
small_cvrpFunction · 0.90
pr107Function · 0.90
ok_small_multi_depotFunction · 0.90
ok_small_multiple_loadFunction · 0.90
ok_small_multiple_tripsFunction · 0.90

Calls

no outgoing calls

Tested by 15

test_X_instanceFunction · 0.72
ok_smallFunction · 0.72
ok_small_prizesFunction · 0.72
rc208Function · 0.72
prize_collectingFunction · 0.72
small_cvrpFunction · 0.72
pr107Function · 0.72
ok_small_multi_depotFunction · 0.72
ok_small_multiple_loadFunction · 0.72
ok_small_multiple_tripsFunction · 0.72