morpc 0.2.7__tar.gz → 0.2.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: morpc
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Data managment tools used by MORPC
5
5
  Author-email: MORPC data team <dataandmaps@morpc.org>
6
6
  License-Expression: MIT
@@ -1,4 +1,4 @@
1
- __version__ = "0.2.7"
1
+ __version__ = "0.2.9"
2
2
 
3
3
  from .morpc import *
4
4
  from .frictionless import *
@@ -978,6 +978,7 @@ def assign_geo_identifiers(points, geographies):
978
978
  TODO: add docstring
979
979
  """
980
980
  import geopandas as gpd
981
+ import pyogrio
981
982
  import requests
982
983
  from io import BytesIO
983
984
 
@@ -1038,7 +1039,7 @@ def assign_geo_identifiers(points, geographies):
1038
1039
  raise RuntimeError
1039
1040
 
1040
1041
  # Read the polygon data
1041
- r = requests.get(filePath, header = {"User-Agent": "Firefox"})
1042
+ r = requests.get(filePath, headers = {"User-Agent": "Firefox"})
1042
1043
  polys = pyogrio.read_dataframe(BytesIO(r.content))
1043
1044
  # polys = gpd.read_file(filePath, layer=layerName, driver=driverName) # Return 403 due to changes in Census website
1044
1045
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: morpc
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Data managment tools used by MORPC
5
5
  Author-email: MORPC data team <dataandmaps@morpc.org>
6
6
  License-Expression: MIT
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