Skip to content

Commit 5317f27

Browse files
committed
Fix n_cmaps/cmap check
1 parent 44e0f6a commit 5317f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simdec/visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def palette(
9494
if cmaps is None:
9595
cmaps = [mpl.colormaps[cmap] for cmap in SEQUENTIAL_PALETTES[:n_cmaps]]
9696
else:
97-
if len(cmaps) != cmaps:
97+
if len(cmaps) != n_cmaps:
9898
raise ValueError(
9999
"Must have the same number of cmaps as the number of first states"
100100
)

0 commit comments

Comments
 (0)