Skip to content

Commit 1aa4cba

Browse files
committed
fix(frq): correctly validate max_len in plot_frequencies_heatmap
- handle max_len=0 correctly - ensure ValueError is raised when expected - preserves existing behavior for max_len=None - fixes failing frequency heatmap tests
1 parent 7d716a8 commit 1aa4cba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

malariagen_data/anoph/frq_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def plot_frequencies_heatmap(
227227
**kwargs,
228228
) -> plotly_params.figure:
229229
# Check len of input.
230-
if max_len and len(df) > max_len:
230+
if max_len is not None and len(df) > max_len:
231231
raise ValueError(
232232
dedent(
233233
f"""

0 commit comments

Comments
 (0)