scgraph 2.1.1__tar.gz → 2.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scgraph-2.1.1/scgraph.egg-info → scgraph-2.1.2}/PKG-INFO +1 -1
- {scgraph-2.1.1 → scgraph-2.1.2}/pyproject.toml +2 -2
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph/core.py +1 -2
- {scgraph-2.1.1 → scgraph-2.1.2/scgraph.egg-info}/PKG-INFO +1 -1
- {scgraph-2.1.1 → scgraph-2.1.2}/setup.cfg +1 -1
- {scgraph-2.1.1 → scgraph-2.1.2}/LICENSE +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/README.md +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph/__init__.py +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph/geographs/__init__.py +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph/geographs/marnet.py +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph/geographs/north_america_rail.py +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph/geographs/oak_ridge_maritime.py +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph/geographs/us_freeway.py +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph/utils.py +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph.egg-info/SOURCES.txt +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph.egg-info/dependency_links.txt +0 -0
- {scgraph-2.1.1 → scgraph-2.1.2}/scgraph.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.black]
|
|
2
2
|
line-length = 80
|
|
3
|
-
target-version = ['
|
|
3
|
+
target-version = ['py312']
|
|
4
4
|
exclude = '/.*(migrations|__pycache__|geographs).*/'
|
|
5
5
|
|
|
6
6
|
[tool.setuptools]
|
|
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
|
|
|
12
12
|
|
|
13
13
|
[project]
|
|
14
14
|
name = "scgraph"
|
|
15
|
-
version = "2.1.
|
|
15
|
+
version = "2.1.2"
|
|
16
16
|
description = "Determine an approximate route between two points on earth."
|
|
17
17
|
authors = [
|
|
18
18
|
{name="Connor Makowski", email="conmak@mit.edu"}
|
|
@@ -727,7 +727,7 @@ class GeoGraph:
|
|
|
727
727
|
if len(nodes) == 0:
|
|
728
728
|
# Default to all if the lat_lon_bound fails to find any nodes
|
|
729
729
|
return self.get_node_distances(
|
|
730
|
-
node=
|
|
730
|
+
node=node,
|
|
731
731
|
circuity=circuity,
|
|
732
732
|
lat_lon_bound=180,
|
|
733
733
|
node_addition_type=node_addition_type,
|
|
@@ -843,7 +843,6 @@ class GeoGraph:
|
|
|
843
843
|
lat_lon_bound, (int, float)
|
|
844
844
|
), "Lat_lon_bound must be a number"
|
|
845
845
|
assert lat_lon_bound > 0, "Lat_lon_bound must be greater than 0"
|
|
846
|
-
|
|
847
846
|
node = [node["latitude"], node["longitude"]]
|
|
848
847
|
# Get the distances to all other nodes
|
|
849
848
|
distances = self.get_node_distances(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|