Skip to content

Commit a7be1ff

Browse files
Bugfix - which_ids in util.classification for templates
1 parent 287e161 commit a7be1ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyrolite/util/classification.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def _add_polygons_to_axes(
195195
axes_scale=100.0,
196196
add_labels=False,
197197
which_labels="ID",
198-
which_ids=[],
198+
which_ids=None,
199199
**kwargs,
200200
):
201201
"""
@@ -247,7 +247,7 @@ def _add_polygons_to_axes(
247247

248248
use_keys = not which_labels.lower().startswith("name")
249249

250-
if not which_ids:
250+
if which_ids is None:
251251
which_ids = list(self.fields.keys())
252252

253253
for k, cfg in self.fields.items():
@@ -412,7 +412,7 @@ def add_to_axes(
412412
axes_scale=100.0,
413413
add_labels=False,
414414
which_labels="ID",
415-
which_ids=[],
415+
which_ids=None,
416416
label_at_centroid=True,
417417
**kwargs,
418418
):
@@ -472,7 +472,7 @@ def add_to_axes(
472472
if not np.isclose(self.default_scale, axes_scale):
473473
rescale_by = axes_scale / self.default_scale
474474

475-
if not which_ids:
475+
if which_ids is None:
476476
which_ids = list(self.fields.keys())
477477

478478
if add_labels:

0 commit comments

Comments
 (0)