From 5df3e921b06dd40e27784c1e75045546ff6602ec Mon Sep 17 00:00:00 2001 From: ktro2828 Date: Fri, 22 Nov 2024 04:32:25 +0900 Subject: [PATCH] refactor: refactor condition Signed-off-by: ktro2828 --- t4_devkit/viewer/viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t4_devkit/viewer/viewer.py b/t4_devkit/viewer/viewer.py index 2c46771..336ce8b 100644 --- a/t4_devkit/viewer/viewer.py +++ b/t4_devkit/viewer/viewer.py @@ -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] = []