We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44e0f6a commit 5317f27Copy full SHA for 5317f27
src/simdec/visualization.py
@@ -94,7 +94,7 @@ def palette(
94
if cmaps is None:
95
cmaps = [mpl.colormaps[cmap] for cmap in SEQUENTIAL_PALETTES[:n_cmaps]]
96
else:
97
- if len(cmaps) != cmaps:
+ if len(cmaps) != n_cmaps:
98
raise ValueError(
99
"Must have the same number of cmaps as the number of first states"
100
)
0 commit comments