cortex-lab / phylib

Lightweight electrophysiological data analysis library
BSD 3-Clause "New" or "Revised" License
11 stars 23 forks source link

Question about suppressing errors in `model.py` #47

Open tabedzki opened 1 month ago

tabedzki commented 1 month ago

In model.py there is a with np.errstate() that suppresses warnings about dividing by 0 except for the instance when we are doing 0/0 since by IEEE standards that is defined as a separate type of error.

Should we update this np.errstate() to account for both or should we not suppress the invalid state?

Thank you in advance