Skip to content

Commit 9ba1fc8

Browse files
authored
Refactor size calculation for last element
1 parent 11140ef commit 9ba1fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/geometry/hyperplane_arrangement/arrangement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3479,7 +3479,7 @@ def is_free(self, algorithm='singular') -> bool:
34793479
sing = mres.parent()
34803480
last_elem = mres[resolution_length]
34813481
# Check if this element is the zero module using size()
3482-
size_val = int(sing.eval(f"size({last_elem.name()})"))
3482+
size_val = sing.size(last_elem)
34833483
if size_val == 0: # Trailing zero module
34843484
resolution_length -= 1
34853485
return resolution_length <= 2

0 commit comments

Comments
 (0)