mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
Apply Ruff formatting to the ODM intrinsics test
This commit is contained in:
1 parent
91a1ddd420
commit
fb39bf3fbe
1 file changed
+3
-1
@@ -23,7 +23,9 @@ def test_odm_intrinsics(tmp_path, camera, expected):
|
|||||||
reconstruction_path = tmp_path / "reconstruction.json"
|
reconstruction_path = tmp_path / "reconstruction.json"
|
||||||
shot = {"rotation": [0, 0, 0], "translation": [0, 0, 0]}
|
shot = {"rotation": [0, 0, 0], "translation": [0, 0, 0]}
|
||||||
reconstruction_path.write_text(json.dumps([{"shots": {"sample.jpg": shot}}]))
|
reconstruction_path.write_text(json.dumps([{"shots": {"sample.jpg": shot}}]))
|
||||||
cameras2nerfds({"sample": Path("sample.jpg")}, cameras_path, tmp_path / "shots.geojson", reconstruction_path, tmp_path)
|
cameras2nerfds(
|
||||||
|
{"sample": Path("sample.jpg")}, cameras_path, tmp_path / "shots.geojson", reconstruction_path, tmp_path
|
||||||
|
)
|
||||||
frame = json.loads((tmp_path / "transforms.json").read_text())["frames"][0]
|
frame = json.loads((tmp_path / "transforms.json").read_text())["frames"][0]
|
||||||
for key, value in expected.items():
|
for key, value in expected.items():
|
||||||
assert frame[key] == pytest.approx(value)
|
assert frame[key] == pytest.approx(value)
|
||||||
Reference in new issue
Block a user