np.asscalar -> np.ndarray.item
Replacing np.assscalar -> np.ndarray.item (https://numpy.org/doc/1.21/reference/generated/numpy.asscalar.html)
Replacing np.assscalar -> np.ndarray.item (https://numpy.org/doc/1.21/reference/generated/numpy.asscalar.html)