@@ -450,8 +450,8 @@ def ReflexivePolytopes(dim):
450450 if _rp [dim ] is None :
451451 db = DatabaseReflexivePolytopes ()
452452 rp = read_all_polytopes (
453- os .path .join (os .path .dirname (db .absolute_filename ()),
454- f'reflexive_polytopes_{ dim } d' ))
453+ os .path .join (os .path .dirname (db .absolute_filename ()),
454+ f'reflexive_polytopes_{ dim } d' ))
455455 for n , p in enumerate (rp ):
456456 # Data files have normal form of reflexive polytopes
457457 p .normal_form .set_cache (p ._vertices )
@@ -760,7 +760,7 @@ def _compute_embedding(self) -> None:
760760 # Absolute value helps to keep normals "inner"
761761 self ._dual_embedding_scale = abs (basis .det ())
762762 dualbasis = matrix (ZZ , self ._dual_embedding_scale * basis .inverse ())
763- self ._dual_embedding_matrix = dualbasis .submatrix (0 ,0 , M .ncols ())
763+ self ._dual_embedding_matrix = dualbasis .submatrix (0 , 0 , M .ncols ())
764764
765765 def _compute_facets (self ):
766766 r"""
@@ -4008,7 +4008,7 @@ def skeleton_show(self, normal=None):
40084008 raise NotImplementedError ("skeleton view is implemented only in 3-d space" )
40094009 if normal is None :
40104010 normal = [ZZ .random_element (20 ),ZZ .random_element (20 ),ZZ .random_element (20 )]
4011- normal = matrix (QQ ,3 , 1 , list (normal ))
4011+ normal = matrix (QQ , 3 , 1 , list (normal ))
40124012 projectionm = normal .kernel ().basis_matrix ()
40134013 positions = dict (enumerate ([list (c ) for c in (projectionm * self .points ()).columns (copy = False )]))
40144014 self .skeleton ().show (pos = positions )
@@ -4311,7 +4311,7 @@ def __init__(self, data, Delta_polar, check=True):
43114311 """
43124312 if check and not Delta_polar .is_reflexive ():
43134313 raise ValueError ("nef-partitions can be constructed for reflexive "
4314- "polytopes ony !" )
4314+ "polytopes only !" )
43154315 self ._vertex_to_part = tuple (int (el ) for el in data )
43164316 self ._nparts = max (self ._vertex_to_part ) + 1
43174317 self ._Delta_polar = Delta_polar
@@ -5646,7 +5646,7 @@ def positive_integer_relations(points):
56465646 # Use the new relation to remove negative entries in non-pivot columns
56475647 for i in range (n_nonpivots ):
56485648 for j in range (n ):
5649- coef = relations [j ,nonpivots [i ]]
5649+ coef = relations [j , nonpivots [i ]]
56505650 if coef < 0 :
56515651 relations .add_multiple_of_row (j , n + i , - coef )
56525652 # Get a new basis
0 commit comments