Skip to content

Commit

Permalink
🆕 Ising Fluctuation Model
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRossetti committed Mar 29, 2019
1 parent 60524d8 commit 5f4daed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ndlib/models/epidemics/IsingFluctuationModel.py
Expand Up @@ -82,11 +82,12 @@ def __change_status(self, u):
if u == self.params['model']['N1']:
dif /= self.params['model']['T1']
ds_bath /= self.params['model']['T1']
self.ds_bath.append((self.actual_iteration + 1, ds_bath, 'T1'))
else:
dif /= self.params['model']['T2']
ds_bath /= self.params['model']['T2']
self.ds_bath.append((self.actual_iteration + 1, ds_bath, 'T2'))

self.ds_bath.append((self.actual_iteration+1, ds_bath))

if s_u_inv < s_u:
return True
Expand Down

0 comments on commit 5f4daed

Please sign in to comment.