I would use ```np.float32``` rather than the string representation.