Skip to content

Commit 3cb8512

Browse files
authored
Merge pull request #8 from Gddr100x/patch-1
Update torus.py
2 parents 514a3f0 + 3d8752e commit 3cb8512

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyknotid/make/torus.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
from __future__ import division
1212

1313
import numpy as np
14-
from fractions import gcd
14+
15+
try:
16+
from fractions import gcd
17+
except:
18+
from fractions import math
19+
gcd = math.gcd
1520

1621
from pyknotid.spacecurves.knot import Knot
1722
from pyknotid.spacecurves.link import Link

0 commit comments

Comments
 (0)