Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRossetti committed Aug 9, 2017
1 parent ae5d0b8 commit 31fc913
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
[![Build Status](https://travis-ci.org/GiulioRossetti/ndlib.svg?branch=master)](https://travis-ci.org/GiulioRossetti/ndlib)
[![Coverage Status](https://coveralls.io/repos/github/GiulioRossetti/ndlib/badge.svg?branch=master)](https://coveralls.io/github/GiulioRossetti/ndlib?branch=master)
[![Documentation Status](https://readthedocs.org/projects/ndlib/badge/?version=latest)](http://ndlib.readthedocs.io/en/latest/?badge=latest)

[![PyPI version](https://badge.fury.io/py/ndlib.svg)](https://badge.fury.io/py/ndlib)
[![Code Health](https://landscape.io/github/GiulioRossetti/ndlib/master/landscape.svg?style=flat)](https://landscape.io/github/GiulioRossetti/ndlib/master)

NDlib provides implementations of several spreading and opinion dynamics models.

Expand Down
2 changes: 1 addition & 1 deletion ndlib/models/epidemics/SEIRModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def iteration(self, node_status=True):

elif u_status == 2:
if self.progress[u] < 1:
self.progress[u] -= self.params['model']['alpha']
self.progress[u] += self.params['model']['alpha']
else:
actual_status[u] = 1 # Infected
del self.progress[u]
Expand Down
2 changes: 1 addition & 1 deletion ndlib/models/epidemics/SEISModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def iteration(self, node_status=True):

elif u_status == 2:
if self.progress[u] < 1:
self.progress[u] -= self.params['model']['alpha']
self.progress[u] += self.params['model']['alpha']
else:
actual_status[u] = 1 # Infected
del self.progress[u]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# long_description = f.read()

setup(name='ndlib',
version='2.1.0',
version='2.1.1',
license='GNU General Public License v3 or later (GPLv3+)',
description='Network Diffusion Library',
url='https://github.com/GiulioRossetti/ndlib',
Expand Down

0 comments on commit 31fc913

Please sign in to comment.