lava
lava copied to clipboard
Incorrect use of np.logical_and/or in Connection ProcessModels
Objective of issue: Incorrect use of np.logical_and and np.logical_or was discovered in learning-related code in Connection ProcessModels.
Lava version:
- [ ] 0.6.0 (feature release)
- [ ] 0.5.1 (bug fixes)
- [x] 0.5.0 (current version)
- [ ] 0.4.1
- [ ] 0.4.0
- [ ] 0.3.0
- [ ] 0.1.2
I'm submitting a ...
- [x] bug report
- [ ] feature request
- [ ] documentation request
Current behavior:
- Currently, to implement
andandorelement-wise operations on 3np.ndarray(example :a,bandc), the following is used :np.logical_and(a, b, c)
Expected behavior:
- It should be implemented like this :
np.logical_and(np.logical_and(a, b), c)ora & b & c