Skip to content

Commit

Permalink
Merge pull request #268 from Visual-Behavior/267-saved-names-none
Browse files Browse the repository at this point in the history
Prevent None accumulation
  • Loading branch information
Data-Iab authored Nov 17, 2022
2 parents feb811e + 921bb98 commit f16022e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aloscene/tensors/augmented_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ def _reset_names(l):
self_ref_tensor = self.rename_(*self._saved_names)
self_ref_tensor._saved_names = None
return self_ref_tensor
elif self._saved_names is not None and not any(v is not None for v in self._saved_names):
self._saved_names = None
return self
else:
return self

Expand Down

0 comments on commit f16022e

Please sign in to comment.