Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.4
0.0.5
11 changes: 9 additions & 2 deletions pytides/tide.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

from collections import OrderedDict, Iterable
import sys
from itertools import takewhile, count
try:
from itertools import izip, ifilter
Expand All @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down