Skip to content

Comments

Allow zero_inflated to accept 0 or 1 as probabilities#74

Merged
peterhurford merged 2 commits intomainfrom
claude/implement-feature-mjz8bwieqf1volxy-AFRWT
Jan 4, 2026
Merged

Allow zero_inflated to accept 0 or 1 as probabilities#74
peterhurford merged 2 commits intomainfrom
claude/implement-feature-mjz8bwieqf1volxy-AFRWT

Conversation

@peterhurford
Copy link
Collaborator

No description provided.

claude added 2 commits January 4, 2026 04:58
- Allow zero_inflated() to accept integer values for p_zero (0 or 1)
- Handle edge cases: p_zero=0 returns just the distribution, p_zero=1
  returns just 0
- Update _process_weights_values to handle integer weights (not just floats)
- Add explicit rejection of boolean values with clearer error message
- Add Changelog section to CLAUDE.md with instructions to update CHANGES.md
- Document the zero_inflated bug fix in CHANGES.md
@peterhurford peterhurford force-pushed the claude/implement-feature-mjz8bwieqf1volxy-AFRWT branch from 88cbbed to 66e9602 Compare January 4, 2026 04:59
@peterhurford peterhurford merged commit da6f9f6 into main Jan 4, 2026
5 checks passed
@peterhurford peterhurford deleted the claude/implement-feature-mjz8bwieqf1volxy-AFRWT branch January 4, 2026 05:05
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.

2 participants