gentnerlab / pyoperant

python package for operant conditioning
BSD 3-Clause "New" or "Revised" License
13 stars 15 forks source link

catch hopper error on shape so shape doesn't die #127

Open timsainb opened 4 years ago

timsainb commented 4 years ago

the only problem with this is that error with shape could go completely unnoticed in this case...

theilmbh commented 4 years ago

That sounds like a big error. It's better to have shape die than have the bird not be able to get food.

timsainb commented 4 years ago

Shape dying will also go unnoticed because we don't get email alerts anymore and we have a chron job auto restarting. IDK how to fix this but we really need a way to notify when this happens

theilmbh commented 4 years ago

Well, shape dying is something you can check on periodically. What's the point of having a hopper error if we just ignore it? How can you make this notify us?

timsainb commented 4 years ago

In main behavior we catch the error and add an error to the behavior CSV. Previously on shape we had an email alert. But since we moved to magpis we can't send emails afaik

timsainb commented 4 years ago

I could make rpioperantctl email you when it reboots a behavior

timsainb commented 4 years ago

The other issue is if the behavior dies when the hopper is up, it will stay on for longer than intended