newsworthycharts 1.60.0__py3-none-any.whl → 1.60.1__py3-none-any.whl

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,4 +1,4 @@
1
- __version__ = "1.60.0"
1
+ __version__ = "1.60.1"
2
2
 
3
3
  from .chart import Chart
4
4
  from .choroplethmap import ChoroplethMap
newsworthycharts/map.py CHANGED
@@ -4,7 +4,6 @@ Base class for maps
4
4
  from .chart import Chart
5
5
  from .lib.geography import haversine
6
6
  from .translations.regions import NW_MUNI_TO_CLDR
7
- from fiona.errors import DriverError
8
7
  import geopandas as gpd
9
8
  import pathlib
10
9
 
@@ -139,12 +138,7 @@ class Map(Chart):
139
138
 
140
139
  if self.df is None:
141
140
  __dir = pathlib.Path(__file__).parent.resolve()
142
- try:
143
- self.df = gpd.read_file(f"{__dir}/maps/{base_map}-{subdivisions}.gpkg")
144
- except DriverError:
145
- raise ValueError(
146
- f"No such basemap: {_bm} (parsed as base: {base_map}, subdivisions: {subdivisions})"
147
- )
141
+ self.df = gpd.read_file(f"{__dir}/maps/{base_map}-{subdivisions}.gpkg", engine="pyogrio")
148
142
  return base_map, subdivisions, subset, *opts
149
143
 
150
144
  def _prepare_map_data(self):
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: newsworthycharts
3
- Version: 1.60.0
3
+ Version: 1.60.1
4
4
  Summary: Matplotlib wrapper to create charts and publish them on Amazon S3
5
5
  Home-page: https://github.com/jplusplus/newsworthycharts
6
- Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.60.0.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.60.1.tar.gz
7
7
  Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
8
8
  Author-email: stockholm@jplusplus.org
9
9
  License: MIT
@@ -23,7 +23,7 @@ Requires-Dist: requests >=2.22
23
23
  Requires-Dist: matplotlib-label-lines ==0.5.1
24
24
  Requires-Dist: geopandas >1
25
25
  Requires-Dist: mapclassify ==2.6.1
26
- Requires-Dist: fiona >=1.0
26
+ Requires-Dist: fiona >=1.10
27
27
 
28
28
  This module contains methods for producing graphs and publishing them on Amazon S3, or in the location of your choice.
29
29
 
@@ -247,6 +247,10 @@ Roadmap
247
247
  Changelog
248
248
  ---------
249
249
 
250
+ - 1.60.1
251
+
252
+ - Don't require fiona. Geopandas now support Pyogrio
253
+
250
254
  - 1.60.0
251
255
 
252
256
  - [BREAKING] The default number of bins in maps is now 5, not 9
@@ -1,10 +1,10 @@
1
- newsworthycharts/__init__.py,sha256=xHFzdcFCUfaPTmQ4A76S5gg13omTVjATWqkExpWYdk8,1160
1
+ newsworthycharts/__init__.py,sha256=4ncjyqowiBpTm3mvedckG9MB2y2Rzc4y2I-5_mVFgeU,1160
2
2
  newsworthycharts/bubblemap.py,sha256=nkocWmpiFgfjEuJGAsthjY5X7Q56jXWsZHUGXw4PwgE,2587
3
3
  newsworthycharts/categoricalchart.py,sha256=LwOZ3VbNy9vzvoK0s77AkbfMt4CXVDSAhnsnBInUIrE,14764
4
4
  newsworthycharts/chart.py,sha256=VXEJe_g_KahyiUXqXnM3vDS7SQoW1Ppktcj13-A2_oc,30631
5
5
  newsworthycharts/choroplethmap.py,sha256=dVRShxjkBKa57r_Kp6ysdNCXGwXh3eZK28MvVtLe7BQ,6677
6
6
  newsworthycharts/datawrapper.py,sha256=RRkAVTpfP4updKxUIBaSmKuBi2RUVPaBRF8HDQhlGGA,11250
7
- newsworthycharts/map.py,sha256=c3VwhJFwmmWJyXJ7HvYdvJsWMTCKD9Eg5VnK6UmdDFc,6233
7
+ newsworthycharts/map.py,sha256=EMpsbvY4V4Y5_ky0Urg4WgvqSEKiDd2kUHXFReMRbb0,6004
8
8
  newsworthycharts/rangeplot.py,sha256=NE1W9TnmlpK6T3RvBJOU3nd73EXqkj17OY9i5zlw_cQ,8366
9
9
  newsworthycharts/scatterplot.py,sha256=6iaMoiZx__Gc-2Hcdw-8Ga5dSonrFo3oexKNmSFuir4,4959
10
10
  newsworthycharts/seasonalchart.py,sha256=rr55yqJUkaYDR9Ik98jes6574oY1U8t8LwoLE3gClW4,1967
@@ -28,8 +28,8 @@ newsworthycharts/rc/newsworthy,sha256=X0btLNrmk2DRrfOsKj_WCSIgeD6btacEN2tRF_B4m8
28
28
  newsworthycharts/translations/datawrapper_regions.csv,sha256=fzZcQRX6RFMlNNP8mpgfYNdR3Y0QAlQxDXk8FXTaWWI,9214
29
29
  newsworthycharts/translations/regions.py,sha256=Nv1McQjggD4S3JRu82rDMTG3pqUVR13E5-FBpSYbm98,239
30
30
  newsworthycharts/translations/se_municipalities.csv,sha256=br_mm-IvzQtj_W55_ATREhJ97jWnCweBFlDAVY2EBxA,7098
31
- newsworthycharts-1.60.0.dist-info/LICENSE.txt,sha256=Sq6kGICrehbhC_FolNdXf0djKjTpv3YqjFCIYsxdQN4,1069
32
- newsworthycharts-1.60.0.dist-info/METADATA,sha256=_muVSibMISGRnrB1Mm2AakHaLJoPtwgQlOKjIAsHZdI,28168
33
- newsworthycharts-1.60.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
34
- newsworthycharts-1.60.0.dist-info/top_level.txt,sha256=dn_kzIj8UgUCMsh1PHdVEQJHVGSsN7Z8YJF-8xXa8n0,17
35
- newsworthycharts-1.60.0.dist-info/RECORD,,
31
+ newsworthycharts-1.60.1.dist-info/LICENSE.txt,sha256=Sq6kGICrehbhC_FolNdXf0djKjTpv3YqjFCIYsxdQN4,1069
32
+ newsworthycharts-1.60.1.dist-info/METADATA,sha256=JIG6aIDf814dmnAg3XYbfGmlsSnN2_KeJCngrP4K8Ow,28235
33
+ newsworthycharts-1.60.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
34
+ newsworthycharts-1.60.1.dist-info/top_level.txt,sha256=dn_kzIj8UgUCMsh1PHdVEQJHVGSsN7Z8YJF-8xXa8n0,17
35
+ newsworthycharts-1.60.1.dist-info/RECORD,,