Skip to content

Commit

Permalink
fix(backend): fix unused_features property (#29)
Browse files Browse the repository at this point in the history
* fix(backend): fix unused_features property

* fix(ci): fix flake8 issue
  • Loading branch information
pmokeev committed Dec 5, 2023
1 parent f2fa427 commit 558ff7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion slam/backend/mrob_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ def __get_unused_features(self) -> List[int]:
unused_features: List[int]
IDs list of unused features
"""
robust_mask = self._graph.get_eigen_factors_robust_mask()
try:
robust_mask = self._graph.get_eigen_factors_robust_mask()
except AttributeError:
return []

unused_features = []

for voxel_id, plane_id in self._planes.items():
Expand Down

0 comments on commit 558ff7c

Please sign in to comment.