Skip to content

Commit e4b94b0

Browse files
address ruff complaints
1 parent abd5bf9 commit e4b94b0

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

bayes3d/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from importlib import metadata
66

7-
from . import colmap, distributions, scene_graph, utils
7+
from . import Renderer, colmap, distributions, scene_graph, utils
88
from .camera import *
99
from .likelihood import *
1010
from .renderer import *

bayes3d/genjax/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,4 @@ def update_address(trace, key, address, value):
302302
key,
303303
genjax.choice_map({address: value}),
304304
tuple(map(lambda v: Diff(v, UnknownChange), trace.args)),
305-
)[0]
305+
)[0]

bayes3d/viz/viz.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ def hvstack_images(images, h, w, border=10, bg_color=(255, 255, 255)):
274274
images_to_vstack = []
275275

276276
for row_idx in range(h):
277-
hstacked_row = hstack_images(images[row_idx * w : (row_idx + 1) * w], border=border, bg_color=bg_color)
277+
hstacked_row = hstack_images(
278+
images[row_idx * w : (row_idx + 1) * w], border=border, bg_color=bg_color
279+
)
278280
images_to_vstack.append(hstacked_row)
279281

280282
return vstack_images(images_to_vstack, border=border, bg_color=bg_color)

demo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from scipy.spatial.transform import Rotation as R
88

99
import bayes3d as b
10-
from bayes3d import distributions
1110

1211
# Can be helpful for debugging:
1312
# jax.config.update('jax_enable_checks', True)

0 commit comments

Comments
 (0)