Skip to content

Commit

Permalink
allow float spot coordinates for detection plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Henley13 committed Nov 19, 2020
1 parent ddab584 commit 6613f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigfish/plot/plot_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ def plot_detection(image, spots, shape="circle", radius=3, color="red",
show=bool)
if isinstance(spots, list):
for spots_ in spots:
stack.check_array(spots_, ndim=2, dtype=np.int64)
stack.check_array(spots_, ndim=2, dtype=[np.int64, np.float64])
else:
stack.check_array(spots, ndim=2, dtype=np.int64)
stack.check_array(spots, ndim=2, dtype=[np.int64, np.float64])

# enlist and format parameters
if not isinstance(spots, list):
Expand Down

0 comments on commit 6613f11

Please sign in to comment.