MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / _ensure_fixtures

Function _ensure_fixtures

tests/pycolmap/test_roundtrip.py:57–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56@pytest.fixture(scope="session", autouse=True)
57def _ensure_fixtures():
58 # Regenerate if the user opts in or if fixtures are missing.
59 if os.environ.get("REGEN_FIXTURES") == "1" or not (FIXTURES / "untransformed").exists():
60 if not (BICYCLE / "cameras.bin").exists():
61 pytest.skip(f"bicycle fixture not present (expected at {BICYCLE})")
62 _regenerate_fixtures()
63
64
65def _count_dangling(rec: "pycolmap.Reconstruction") -> int:

Callers

nothing calls this directly

Calls 3

_regenerate_fixturesFunction · 0.85
getMethod · 0.80
skipMethod · 0.80

Tested by

no test coverage detected