Skip to content

Commit

Permalink
address ruff complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
littleredcomputer committed Feb 23, 2024
1 parent abd5bf9 commit e4b94b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bayes3d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from importlib import metadata

from . import colmap, distributions, scene_graph, utils
from . import Renderer, colmap, distributions, scene_graph, utils
from .camera import *
from .likelihood import *
from .renderer import *
Expand Down
2 changes: 1 addition & 1 deletion bayes3d/genjax/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,4 @@ def update_address(trace, key, address, value):
key,
genjax.choice_map({address: value}),
tuple(map(lambda v: Diff(v, UnknownChange), trace.args)),
)[0]
)[0]
4 changes: 3 additions & 1 deletion bayes3d/viz/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ def hvstack_images(images, h, w, border=10, bg_color=(255, 255, 255)):
images_to_vstack = []

for row_idx in range(h):
hstacked_row = hstack_images(images[row_idx * w : (row_idx + 1) * w], border=border, bg_color=bg_color)
hstacked_row = hstack_images(
images[row_idx * w : (row_idx + 1) * w], border=border, bg_color=bg_color
)
images_to_vstack.append(hstacked_row)

return vstack_images(images_to_vstack, border=border, bg_color=bg_color)
Expand Down
1 change: 0 additions & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from scipy.spatial.transform import Rotation as R

import bayes3d as b
from bayes3d import distributions

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

0 comments on commit e4b94b0

Please sign in to comment.