Skip to content

Commit

Permalink
Fix check on length of list of exponentials
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Feb 9, 2024
1 parent 639d6f9 commit b5c94c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wormneuroatlas/NeuroAtlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def get_kernel(self, i, j, strain="wt"):
exp.append({"g":k_[0],"factor":k_[1],
"power_t":k_[2],"branch":k_[3]})

if len(exp>0):
if len(exp)>0:
kernel = wa.ExponentialConvolution_min(exp)
kernel.multiply_scalar_inplace(1.0/count)
return kernel
Expand Down

0 comments on commit b5c94c8

Please sign in to comment.