Neurons-and-Ising Some code to infer couplings in Ising model and analyse attractor dynamics of the inferred model