diff --git a/VERSION b/VERSION index 81340c7..bbdeab6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.4 +0.0.5 diff --git a/pytides/tide.py b/pytides/tide.py index bc7089c..edf87ef 100644 --- a/pytides/tide.py +++ b/pytides/tide.py @@ -1,5 +1,4 @@ - -from collections import OrderedDict, Iterable +import sys from itertools import takewhile, count try: from itertools import izip, ifilter @@ -12,8 +11,16 @@ from astro import astro import constituent +if sys.version_info <= (3, 10): + from collections import OrderedDict, Iterable +elif sys.version_info > (3, 10): + from collections import OrderedDict + from collections.abc import Iterable + + d2r, r2d = np.pi/180.0, 180.0/np.pi + class Tide(object): dtype = np.dtype([ ('constituent', object), diff --git a/setup.py b/setup.py index 2bdb475..7106c43 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup(name='pytides', description='Tidal analysis and prediction library.', - version='0.0.4', + version='0.0.5', author='Sam Cox', author_email='sam.cox@cantab.net', url='http://github.com/sam-cox/pytides',