|
self._processed = scipy.zeros((self._n, 1), dtype=bool) |
In this line:
self._processed = scipy.zeros((self._n, 1), dtype=bool)
it's recommended to use numpy.zeros() directly:
self._processed = numpy.zeros((self._n, 1), dtype=bool)
scipy.zeros() is just a thin wrapper around numpy.zeros() and introduces unnecessary overhead. For performance, readability, and consistency, it's best to use numpy.zeros() directly, which is the standard and widely adopted practice.
REDPy/redpy/optics.py
Line 24 in c38ddf5
In this line:
self._processed = scipy.zeros((self._n, 1), dtype=bool)it's recommended to use numpy.zeros() directly:
self._processed = numpy.zeros((self._n, 1), dtype=bool)scipy.zeros() is just a thin wrapper around numpy.zeros() and introduces unnecessary overhead. For performance, readability, and consistency, it's best to use numpy.zeros() directly, which is the standard and widely adopted practice.