Skip to content

Commit

Permalink
fix: removed iteration across orders
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrobiglio committed Sep 9, 2024
1 parent 0881051 commit 90a9729
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xgi/core/simplicialcomplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,8 @@ def k_skeleton(self, order, in_place=True):
raise XGIError(
f"Order {order} is greater than the maximum order {max_order}"
)
for i in range(max_order, order, -1):
bunch = _H.edges.filterby('order', i)
_H.remove_simplex_ids_from(bunch)
if order != max_order:
bunch = _H.edges.filterby('order', order, 'gt')
_H.remove_simplex_ids_from(bunch)
if not in_place:
return _H

0 comments on commit 90a9729

Please sign in to comment.