Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/sage/combinat/designs/bibd.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def balanced_incomplete_block_design(v, k, lambd=1, existence=False, use_LJCR=Fa
return False
raise EmptySetError(f"there exists no ({v},{k},{lambd})-BIBD")
B = B.incidence_structure()
if B.num_blocks() == expected_n_of_blocks:
if B.n_blocks() == expected_n_of_blocks:
if existence:
return True
else:
Expand Down Expand Up @@ -1467,7 +1467,7 @@ def __repr__(self):
(13,3,1)-Balanced Incomplete Block Design
"""
bsizes = list(frozenset(self.block_sizes()))
return "Pairwise Balanced Design on {} points with sets of sizes in {}".format(self.num_points(), bsizes)
return "Pairwise Balanced Design on {} points with sets of sizes in {}".format(self.n_points(), bsizes)


class BalancedIncompleteBlockDesign(PairwiseBalancedDesign):
Expand Down Expand Up @@ -1526,10 +1526,10 @@ def __repr__(self):
sage: b=designs.balanced_incomplete_block_design(9,3); b
(9,3,1)-Balanced Incomplete Block Design
"""
v = self.num_points()
v = self.n_points()
k = len(self._blocks[0]) if self._blocks else 0
l = self._lambd
return "({},{},{})-Balanced Incomplete Block Design".format(v,k,l)
return f"({v},{k},{l})-Balanced Incomplete Block Design"

def arc(self, s=2, solver=None, verbose=0, *, integrality_tolerance=1e-3):
r"""
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/designs/gen_quadrangles_with_spread.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def dual_GQ_ovoid(GQ, O):

# GQ.ground_set()[i] becomes newBlocks[i]
# GQ.blocks()[i] becomes i
newBlocks = [[] for _ in range(GQ.num_points())]
newBlocks = [[] for _ in range(GQ.n_points())]
pointsToInt = {p: i for i, p in enumerate(GQ.ground_set())}

for i, b in enumerate(GQ.blocks()):
Expand Down
4 changes: 2 additions & 2 deletions src/sage/combinat/designs/group_divisible_designs.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def __init__(self, points, groups, blocks, G=None, K=None, lambd=1,

if check or groups is None:
is_gdd = is_group_divisible_design(self._groups, self._blocks,
self.num_points(), G, K,
self.n_points(), G, K,
lambd, verbose=1)
assert is_gdd
if groups is None:
Expand Down Expand Up @@ -355,6 +355,6 @@ def __repr__(self):
if not gdd_type:
gdd_type = "1^0"

v = self.num_points()
v = self.n_points()

return "Group Divisible Design on {} points of type {}".format(v, gdd_type)
Loading
Loading