-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V0.5 fixes #527
V0.5 fixes #527
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The move from 'delta' to 'constant' is just a lot more logical and clear to understand for users.
tests/test_networks.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding StaticNet to tests expands test coverage! DynamicNet is tested via MaternalNet and RandomNet. This leaves: NullNet and SexualNet as classes excluded from testing in 'network.py'. I will add a test for this for Issue #515.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Straightforward changes. Testing passed and I didn't see any errors or issues so this PR is good to go from my perspective.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple of small comments
@@ -104,7 +104,7 @@ def check_requires(self, sim): | |||
raise Exception(errormsg) | |||
return | |||
|
|||
def initialize(self, sim): | |||
def init_pre(self, sim): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i reckon there should be a comment somewhere that attempts to clarify for users which things should go in init vs init_pre vs init_post. maybe in these docstrings?
starsim/distributions.py
Outdated
@@ -587,7 +587,7 @@ def plot_hist(self, n=1000, bins=None, fig_kw=None, hist_kw=None): | |||
|
|||
# Add common distributions so they can be imported directly; assigned to a variable since used in help messages | |||
dist_list = ['random', 'uniform', 'normal', 'lognorm_ex', 'lognorm_im', 'expon', | |||
'poisson', 'weibull', 'delta', 'randint', 'bernoulli', 'choice'] | |||
'poisson', 'weibull', 'const', 'randint', 'bernoulli', 'choice'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not constant
? it's only 8 letters, shorter than the lognorm_**
options! at least make an alias?
Updated Starsim README.rst for public GitHub and PyPI pages.
Update read me for pypi
…upport-all-or-nothing-vaccines Add option of sir_vaccine to be leaky or all_or_nothing
…ecome_pregnant Ensure unborn agents cannot become pregnant.
Description
Various bugfixes; namely:
ss.delta
toss.const
#490initialize()/init_vals()
#506Checklist