Skip to content
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

Merged
merged 33 commits into from
Jun 3, 2024
Merged

V0.5 fixes #527

merged 33 commits into from
Jun 3, 2024

Conversation

cliffckerr
Copy link
Contributor

@cliffckerr cliffckerr commented May 28, 2024

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

@kaa2102 kaa2102 left a 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.

Copy link
Contributor

@robynstuart robynstuart left a 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):
Copy link
Contributor

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?

@@ -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']
Copy link
Contributor

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?

@cliffckerr cliffckerr merged commit 7577d15 into main Jun 3, 2024
3 checks passed
@cliffckerr cliffckerr deleted the v0.5-fixes branch June 3, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants