From 59e33e3025880c052d62246bdfb5942c041fb457 Mon Sep 17 00:00:00 2001 From: RichieHakim Date: Fri, 14 Jun 2024 00:04:47 -0400 Subject: [PATCH] safety --- bnpm/timeSeries.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bnpm/timeSeries.py b/bnpm/timeSeries.py index 1a2f05f..401e8d0 100644 --- a/bnpm/timeSeries.py +++ b/bnpm/timeSeries.py @@ -65,6 +65,8 @@ def convolve_along_axis( ''' tic = time.time() + axis = array.ndim + axis if axis<0 else axis ## convert negative axis to positive axis + if array.ndim == 1: multicore_pref = False if multicore_pref: