forked from tangger/lerobot
chore(robots): fix pre-commit
This commit is contained in:
@@ -28,7 +28,7 @@ class RobotConfig(draccus.ChoiceRegistry, abc.ABC):
|
|||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
if hasattr(self, "cameras") and self.cameras:
|
if hasattr(self, "cameras") and self.cameras:
|
||||||
for name, config in self.cameras.items():
|
for _, config in self.cameras.items():
|
||||||
for attr in ["width", "height", "fps"]:
|
for attr in ["width", "height", "fps"]:
|
||||||
if getattr(config, attr) is None:
|
if getattr(config, attr) is None:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
|||||||
Reference in New Issue
Block a user