You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first time a numpy structure is used, it is called with the name numpy (numpy.zeros), while later numpy structures are called with the abbreviation np (np.float32, specifically).
These calls should all be uniform. As the preface states that numpy is imported as import numpy as np, numpy.zeros should be changed to np.zeros.
Edit: this also repeats in 2.2.3 (Variables).
The text was updated successfully, but these errors were encountered:
In 2.2.2. (Buffers), python code snippet:
The first time a numpy structure is used, it is called with the name numpy (
numpy.zeros
), while later numpy structures are called with the abbreviationnp
(np.float32
, specifically).These calls should all be uniform. As the preface states that numpy is imported as
import numpy as np
,numpy.zeros
should be changed tonp.zeros
.Edit: this also repeats in 2.2.3 (Variables).
The text was updated successfully, but these errors were encountered: