Skip to content

Commit dae898d

Browse files
committed
Add geomdl_version function
1 parent 76362b2 commit dae898d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

geomdl/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
__version__ = "6.0a1"
1010

1111
# Author and license
12-
__author__ = "Onur R. Bingol and The GEOMDL Contributors"
12+
__author__ = "Onur R. Bingol"
1313
__license__ = "MIT"
1414

1515
# Optional variables
1616
__description__ = 'Object-oriented B-Spline and NURBS library'
17-
__keywords__ = 'NURBS B-Spline curve surface CAD modeling visualization surface-generator'
17+
__keywords__ = 'NURBS B-Spline curve surface volume computational-geometry CAD modeling visualization'
1818

1919
# Support for "from geomdl import *"
2020
# @see: https://stackoverflow.com/a/41895257
@@ -25,7 +25,6 @@
2525
'construct',
2626
'control_points',
2727
'convert',
28-
'CPGen',
2928
'elements',
3029
'evaluators',
3130
'exchange',
@@ -51,3 +50,8 @@
5150

5251
# Default types for strings
5352
GeomdlTypeString.register(str)
53+
54+
55+
def geomdl_version():
56+
""" Returns geomdl full version as a tuple """
57+
return tuple(__version__.split('.'))

0 commit comments

Comments
 (0)