Skip to content

Commit

Permalink
safety
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieHakim committed Jun 14, 2024
1 parent 3a65f2d commit 59e33e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bnpm/timeSeries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 59e33e3

Please sign in to comment.