Skip to content

Commit 27e0eee

Browse files
soehmstscrim
andauthored
40081: review fixes
Co-authored-by: Travis Scrimshaw <[email protected]>
1 parent 848914d commit 27e0eee

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

src/sage/interfaces/khoca.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
Khoca is computer program writen by Lukas Lewark to calculate sl(N)-homology
55
of knots and links. It calculates the following:
66
7-
* Khovanov sl(2)-homology of arbitrary links, given as a braid or in PD code.
8-
* Khovanov-Rozansky sl(N)-homology with N > 2 of bipartite knots, given by a
9-
certain encoding of a matched diagram of the knot.
10-
* Homology over the integers, the rationals or a prime field.
11-
* Either equivariant homology, or homology with an arbitrary fixed potential.
12-
* All pages of the spectral sequence of filtered homology over a field.
13-
* Reduced and unreduced homology.
14-
* Homology of sums and mirror images of knots.
7+
* Khovanov sl(2)-homology of arbitrary links, given as a braid or in PD code.
8+
* Khovanov-Rozansky `sl(N)`-homology with `N > 2` of bipartite knots, given by a
9+
certain encoding of a matched diagram of the knot.
10+
* Homology over the integers, the rationals or a prime field.
11+
* Either equivariant homology, or homology with an arbitrary fixed potential.
12+
* All pages of the spectral sequence of filtered homology over a field.
13+
* Reduced and unreduced homology.
14+
* Homology of sums and mirror images of knots.
1515
1616
For more details please have a look at the `Khoca repository <https://github.com/LLewark/khoca>`__.
1717
If you are using khoca for a project or publication, please cite the web page or the literature
@@ -24,7 +24,6 @@
2424
AUTHORS:
2525
2626
- Sebastian Oehms (2025):
27-
2827
"""
2928

3029
##############################################################################
@@ -124,7 +123,7 @@ def khoca_raw_data(link, ring, red_typ=True, **kwds):
124123
125124
INPUT:
126125
127-
- ``link`` -- instance of class :class:`~sage.knots.link.Link`.
126+
- ``link`` -- :class:`~sage.knots.link.Link`
128127
- ``ring`` -- the coefficient ring
129128
- ``kwds`` -- dictionary of options to be passes to ``Khoca``
130129

src/sage/knots/link.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,9 +1152,9 @@ def _khovanov_homology_cached(self, height, implementation, ring=ZZ, **kwds):
11521152
following:
11531153
11541154
* ``'native'`` -- uses the original Sage implementation
1155-
11561155
* ``'Khoca'`` -- uses the implementation of the optional package
1157-
``khoca`` package is present.
1156+
``khoca`` package is present
1157+
11581158
- ``ring`` -- (default: ``ZZ``) the coefficient ring
11591159
- ``kwds`` -- dictionary of options to be passes to ``Khoca``
11601160
@@ -1261,19 +1261,19 @@ def khovanov_homology(self, ring=ZZ, height=None, degree=None, implementation='n
12611261
12621262
- ``kwds`` -- dictionary of options to be passes to ``Khoca``
12631263
1264-
* ``reduced`` -- boolean (default ``False``). Set this to
1265-
``True`` to obtain reduced homology
1264+
* ``reduced`` -- boolean (default ``False``); if
1265+
``True``, then returns the reduced homology
12661266
1267-
* ``equivariant`` -- positive integer (default ``2``). Set this
1268-
to ``n`` to obtain Khovanov-Rozansky sl(n)-homology with n > 2 of
1269-
bipartite knots
1267+
* ``equivariant`` -- positive integer (default ``2``); if this is
1268+
`n`, then it returns the Khovanov-Rozansky `sl(n)`-homology
1269+
with `n > 2` of bipartite knots
12701270
1271-
* ``frobenius_algebra`` -- tuple of integers (default ``(0, 0)``. The
1271+
* ``frobenius_algebra`` -- tuple of integers (default ``(0, 0)``); the
12721272
elements of the tuple are interpreted as modulus coefficients of
1273-
the underlying frobenius algebra
1273+
the underlying Frobenius algebra
12741274
12751275
* ``root`` -- integer specifying a root of the modulus of the
1276-
frobenius algeba.
1276+
Frobenius algeba
12771277
12781278
OUTPUT:
12791279
@@ -1341,11 +1341,11 @@ def khovanov_homology(self, ring=ZZ, height=None, degree=None, implementation='n
13411341
sage: L.khovanov_homology(degree=1, height=1)
13421342
{}
13431343
"""
1344-
from sage.interfaces.khoca import check_kwds
1345-
check_kwds(**kwds)
13461344
khoca = False
13471345
if implementation == 'Khoca':
13481346
khoca = True
1347+
from sage.interfaces.khoca import check_kwds
1348+
check_kwds(**kwds)
13491349
elif implementation != 'native':
13501350
raise ValueError('%s is not a recognized implementation')
13511351

0 commit comments

Comments
 (0)