Watchdogtricks, numpy arrais comparison
How do i watch python source code files and restart when i save?
Самый простой способ - использовать wathcdog
как-нибудь так : watchmedo auto-restart -p "*.py" -R -- python pplication.py
Comparing two NumPy arrays for equality, element-wise
import numpy as np
(A==B).all()
np.array_equal(A,B) # test if same shape, same elements values
np.array_equiv(A,B) # test if broadcastable shape, same elements values
np.allclose(A,B,...) # test if same shape, elements have close enough values
Смотри еще [numpy]