This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'u/soehms/knotinfo' of git://trac.sagemath.org/sage into…
… knotinfo_30352
- Loading branch information
Showing
13 changed files
with
3,440 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
database_knotinfo | ||
================= | ||
|
||
Description | ||
----------- | ||
|
||
Database for named knots and links provided at | ||
|
||
https://knotinfo.math.indiana.edu/ | ||
|
||
and | ||
|
||
https://linkinfo.sitehost.iu.edu' | ||
|
||
Dependencies | ||
------------ | ||
|
||
- Sage library | ||
|
||
Changelog | ||
--------- | ||
|
||
- 20200713 (Sebastian Oehms, 13 Juli 2020, :trac:`30352`, initial version) | ||
|
||
The tarball has been created from the both download files at the | ||
given date: | ||
|
||
``knotinfo_data_complete.xls`` | ||
``linkinfo_data_complete.xlsx`` | ||
|
||
exporting them to CSV via LibreOffice. | ||
|
||
The second file has been changed manually deleting one character: | ||
a trailing "}" occuring in the homfly_polynomial column of the last | ||
link ``L11n459{1,1,1}``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
tarball=knotinfo-20200713.tar.bz2 | ||
sha1=ec6c8436d5565fdd140cd3e4b301d215cd62b0d0 | ||
md5=1d84f176290bdd3a752757242512fca2 | ||
cksum=3419853512 | ||
upstream_url=https://trac.sagemath.org/raw-attachment/ticket/30352/knotinfo-20200713.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| $(SAGERUNTIME) | ||
|
||
---------- | ||
All lines of this file are ignored except the first. | ||
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20200713 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cd $SAGE_ROOT/src/sage/ | ||
|
||
echo "Testing databases/knotinfo_db.py" | ||
sage -t --optional="sage,database_knotinfo" databases/knotinfo_db.py || sdh_die "Error testing KnotInfo databases" | ||
|
||
echo "Testing knots/knotinfo.py" | ||
sage -t --optional="sage,database_knotinfo" knots/knotinfo.py || sdh_die "Error testing KnotInfo funcionality" | ||
|
||
echo "Testing knots/link.py" | ||
sage -t --optional="sage,database_knotinfo" knots/link.py || sdh_die "Error testing KnotInfo funcionality" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
INSTALL="yes" | ||
TARGET="${SAGE_SHARE}/knotinfo" | ||
VERSION=`cat package-version.txt` | ||
if [ -d $TARGET ] | ||
then | ||
diff package-version.txt $TARGET > /dev/null 2>&1 | ||
if [ $? -eq 0 ] | ||
then | ||
INSTALL="no" | ||
echo "Version $VERSION of knotinfo already installed" | ||
else | ||
OLD_VERSION=`cat $TARGET/package-version.txt` | ||
echo "Removing former version $OLD_VERSION of knotinfo" | ||
rm -rf $TARGET | ||
fi | ||
fi | ||
|
||
if [ "$INSTALL" = "yes" ] | ||
then | ||
exec sage-python23 spkg-install.py | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import os | ||
from sage.all import save | ||
from sage.env import SAGE_SHARE | ||
from sage.misc.misc import sage_makedirs | ||
from sage.databases.knotinfo_db import KnotInfoDataBase | ||
|
||
install_root = os.path.join(SAGE_SHARE, 'knotinfo') | ||
|
||
if __name__ == '__main__': | ||
sage_makedirs(install_root) | ||
print("Creating the KnotInfo database.") | ||
ki_db = KnotInfoDataBase() | ||
ki_db.create_col_dict_sobj() | ||
ki_db.create_data_sobj() | ||
os.system('cp package-version.txt %s' %install_root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ Knot Theory | |
|
||
sage/knots/knot | ||
sage/knots/link | ||
sage/knots/knotinfo | ||
|
||
.. include:: ../footer.txt |
Oops, something went wrong.