From d7ed2c69a2c5438e6046ac6cb576e7239793532b Mon Sep 17 00:00:00 2001 From: Jeremy Steele Date: Tue, 1 Oct 2024 12:04:09 -0400 Subject: [PATCH 1/2] Allow comparisons to None on LatLon --- gtfs_loader/lat_lon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtfs_loader/lat_lon.py b/gtfs_loader/lat_lon.py index 131cdf7..6e55e13 100644 --- a/gtfs_loader/lat_lon.py +++ b/gtfs_loader/lat_lon.py @@ -71,6 +71,8 @@ def distance_to_segment(x, l1, l2): return LatLon.EARTH_RADIUS_M * min(d_l1_x, d_l2_x) def __eq__(self, other): + if other == None: + return False return self.lat == other.lat and self.lon == other.lon def __hash__(self): From d550ab9893dab8e489d56b231d7d2e051b0193ac Mon Sep 17 00:00:00 2001 From: Jeremy Steele Date: Tue, 1 Oct 2024 12:10:38 -0400 Subject: [PATCH 2/2] bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c97d12b..3a88cdc 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup(name='py-gtfs-loader', - version='0.1.14', + version='0.1.15', description='Load GTFS', url='https://github.com/TransitApp/py-gtfs-loader', author='Nicholas Paun, Jonathan Milot',