Skip to content

Commit

Permalink
compatibility with old master
Browse files Browse the repository at this point in the history
  • Loading branch information
agiovann authored Apr 26, 2018
1 parent 0773659 commit 9b87672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caiman/source_extraction/cnmf/initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ def compute_W(Y, A, C, dims, radius, data_fits_in_memory=True, ssub=1, tsub=1):

radius = int(round(radius / float(ssub)))
ring = disk(radius + 1)
ring[1:-1, 1:-1] -= disk(radius)
ring[1:-1, 1:-1] -= np.bitwise_xor(ring[1:-1, 1:-1], disk(radius, dtype=bool))
ringidx = [i - radius - 1 for i in np.nonzero(ring)]

def get_indices_of_pixels_on_ring(pixel):
Expand Down

0 comments on commit 9b87672

Please sign in to comment.