Skip to content

Commit

Permalink
Merge pull request #17 from chrisvoncsefalvay/develop
Browse files Browse the repository at this point in the history
Release for 0.2.0
  • Loading branch information
chrisvoncsefalvay authored Sep 9, 2020
2 parents 8158d46 + b861954 commit 04b3c65
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sadie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = """Chris von Csefalvay"""
__email__ = 'chris@chrisvoncsefalvay.com'
__version__ = '0.1.9'
__version__ = '0.2.0'

from sadie.models.base import * # noqa
from sadie.models.simple import * # noqa
Expand Down
7 changes: 7 additions & 0 deletions sadie/agents/walkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ def update(self):


class VariableVelocityWalker(BaseWalker):
"""
Variable velocity walkers have a velocity distributed based on a probability distribution, `velocity_distribution`.
In general, velocities cannot be negative. There are two behaviours, conditioned by the `reflect` parameter:
* reflection (`reflect = True`): if the random value from the distribution is negative, the absolute value is taken,
* capping (`reflect = True`): if the random value from the distribution is negative, 0 is used.
"""
def __init__(self,
x_init: float,
y_init: float,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.9
current_version = 0.2.0
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/chrisvoncsefalvay/sadie',
version='0.1.9',
version='0.2.0',
zip_safe=False,
)

0 comments on commit 04b3c65

Please sign in to comment.