AllenNeuralDynamics / foraging-behavior-browser

Foraging behavior browser (streamlit)
https://foraging-behavior-browser.streamlit.app/
MIT License
1 stars 2 forks source link

Bug: multiselect dots in plotly plot caused an error #60

Open hanhou opened 3 months ago

hanhou commented 3 months ago

Multi-select dots in plotly plot caused this error:

image

link

hanhou commented 3 months ago

It should have something to do with the way I retrieve selected dots from plotly figure. I was using (x, y) coordinates. This is problematic when multiple dots have the same (x, y). Two ways to solve this:

  1. add a very small random jitter to (x, y), like I did in ephys unit selector.
  2. (better) use curveNumber and pointNumber, like I did in AutoTrain manager.