Skip to content

Commit

Permalink
refactor: refactor condition
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 committed Nov 21, 2024
1 parent 7b119d5 commit 5df3e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t4_devkit/viewer/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(
self.with_2d = self.cameras is not None
self.label2id: dict[str, int] | None = None

if not self.with_3d and not self.with_2d:
if not (self.with_3d or self.with_2d):
raise ValueError("At least one of 3D or 2D spaces must be rendered.")

view_container: list[rrb.Container | rrb.SpaceView] = []
Expand Down

0 comments on commit 5df3e92

Please sign in to comment.