Update ising.py