mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Consistency of get_inverse calls
This commit is contained in:
@@ -806,11 +806,11 @@ class file_mixin:
|
||||
if with_attribute_indices and not allow_duplicate:
|
||||
raise ValueError("with_attribute_indices requires allow_duplicate to be True")
|
||||
|
||||
inverses = self.get_inverse(inst)
|
||||
inverses = self._get_inverse(inst)
|
||||
|
||||
if allow_duplicate:
|
||||
if with_attribute_indices:
|
||||
idxs = self.get_inverse_indices(inst)
|
||||
idxs = self._get_inverse_indices(inst)
|
||||
# TODO: include in typing.
|
||||
return list(zip(inverses, idxs))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user