Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optomotor Module stops with the following error #122

Open
budhaChowdhury opened this issue Jul 14, 2020 · 13 comments
Open

Optomotor Module stops with the following error #122

budhaChowdhury opened this issue Jul 14, 2020 · 13 comments

Comments

@budhaChowdhury
Copy link

Screen Shot 2020-07-14 at 3 11 24 PM

The Optomotor Module starts up and runs without any problems, but after overnight tracking, exits with the error message.

@qgeissmann
Copy link
Member

Hi @budhaChowdhury, thanks,

Does it happen systematically? Does it happen when just tracking? It looks like this is an exception when the input image (within a region of interest) is completely black (mean = 0)...
if it is transient (e.g. the camera output a few black frames to start with), we could skip the errors by changing the code to something like:

try:
    scale = 128. / mean[0]
except ZeroDivisionError:
      raise NoPositionError

@budhaChowdhury
Copy link
Author

Hi Quentin,
Thanks for your feedback!
The problem is arising when the lights in the incubator turn back on (respective day) after tracking in the dark (respective night). I just ran the module a couple more times and every single time the tracking stops as the lights are turned back on, even with a lower intensity. Do you think I should still try out the altered code?

@ggilestro
Copy link
Member

ggilestro commented Jul 14, 2020 via email

@qgeissmann
Copy link
Member

Yes, I would check that the lights are working as well (maybe just take a video). But I would say the untested patch I propose should make the tracking more robust in the case this is just a spurious couple of frames... That would perhaps be smart for us to implement so that long experiments stop after several days of acquisition... That said, it is still very hard to generate completely black frames, which is why we never had this issue...

@budhaChowdhury
Copy link
Author

Yep the IR lights are working - I am attaching a screenshot.
I ran a couple more times again - it quits with the same error message as the lights turn back on... Quentin can you walk me through how to use the patch? Thanks!
ps. Should I also try a different camera?
Screen Shot 2020-07-14 at 5 17 36 PM

@qgeissmann
Copy link
Member

@ggilestro Is the update service still running on the new version? I would suggest adding the patch on a github branch so that @budhaChowdhury can update devices to this specific branch for testing...

@ggilestro
Copy link
Member

ggilestro commented Jul 14, 2020 via email

@qgeissmann
Copy link
Member

I don't have much infrastructure to test anything, but I am happy to help anything back-endish :). I can make a PR on dev and you can test.

qgeissmann added a commit that referenced this issue Jul 14, 2020
@qgeissmann
Copy link
Member

once the patch goes through to dev, you can update following this information. Ensure you pick the dev branch, not master. That would be very helpful if you let us know how it goes :),

@budhaChowdhury
Copy link
Author

Thank you so much, will definitely keep you updated how it goes!

@budhaChowdhury
Copy link
Author

Hi Quentin,
in the dev branch (for ethoscope) the status says "Software broken"- should I go ahead and update it anyway? Thanks!
ps. I am guessing I should update the Ethoscope, and not the node?

@ggilestro
Copy link
Member

ggilestro commented Jul 15, 2020 via email

@budhaChowdhury
Copy link
Author

okay, just checking : ) Thanks a ton!

ggilestro added a commit that referenced this issue Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants