Skip to content

Commit d568bf7

Browse files
committed
clean-up
1 parent c10565d commit d568bf7

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
- **1.0.2** (2026-01-16):
2-
- BREAKING: require cartogram_attribute to be a positional argument
32
- fix inheritance from geopandas.GeoDataFrame
43
- update geopandas dependency
54

src/cartogram/cartogram.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,6 @@ def _invalidate_cached_properties(self, properties=None):
194194
"""Invalidate properties that were cached as `functools.cached_property`."""
195195
# https://stackoverflow.com/a/68316608
196196
if not properties:
197-
# # clear all as default
198-
# properties = [
199-
# attribute
200-
# for attribute in self.__dict__.keys()
201-
# if isinstance(
202-
# getattr(self, attribute, None),
203-
# functools.cached_property)
204-
# ]
205197
properties = [
206198
attr
207199
for attr in list(self.__dict__.keys())
@@ -228,12 +220,6 @@ def _transform(self):
228220
self.iteration < self.max_iterations
229221
and self.average_error > self.max_average_error
230222
):
231-
# self.geometry = self.geometry.apply(
232-
# functools.partial(
233-
# self._transform_geometry,
234-
# features=self._cartogram_features
235-
# )
236-
# )
237223
with joblib.Parallel(
238224
verbose=(self.verbose * 10),
239225
n_jobs=NUM_THREADS,
@@ -291,8 +277,6 @@ def _transform_vertex(self, vertex, features, reduction_factor):
291277

292278
x += (x0 - cx) * force
293279
y += (y0 - cy) * force
294-
295-
# print(f" moved vertex by {x0-x}, {y0-y}")
296280
return [x, y]
297281

298282
def _transform_vertices(self, vertices, features, reduction_factor):

0 commit comments

Comments
 (0)