Skip to content

Commit 14c3383

Browse files
committed
🙈 hotfiex
1 parent f60b9d4 commit 14c3383

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plotly_resampler/aggregation/plotly_aggregator_parser.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,12 @@ def aggregate(
162162
# No downsampling needed ; we show the raw data as is, but with gap-detection
163163
if (end_idx - start_idx) <= hf_trace_data["max_n_samples"]:
164164
indices = np.arange(len(hf_y)) # no downsampling - all values are selected
165-
return PlotlyAggregatorParser._handle_gaps(
166-
hf_trace_data, hf_x=hf_x, agg_x=hf_x, agg_y=hf_y, indices=indices
167-
)
165+
if len(indices):
166+
return PlotlyAggregatorParser._handle_gaps(
167+
hf_trace_data, hf_x=hf_x, agg_x=hf_x, agg_y=hf_y, indices=indices
168+
)
169+
else:
170+
return hf_x, hf_y, indices
168171

169172
downsampler = hf_trace_data["downsampler"]
170173

0 commit comments

Comments
 (0)