Fix: broad the numpy compatibility
Method asscalar of numpy is deprecated since NumPy 1.16. In the latest version, it seems to be missing.
In this MR _asscalar method is created to substitute the original behaviour of NumPy's asscalar with all NumPy versions.