CDCgov / CDCgov/DynODE

add tests for distributions with Negative support to purely positive fields

Open
#425 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13
Forks
3
Avg merge
19h 43m
Merged PRs (30d)
1

Description

most obvious field to start with is dynode.Strain.r0 can only take positive values, but currently accepts a prior such as Normal(0,1) which has support over negative values.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at dynode.Strain.r0 and inspect how its prior is handled, then review the existing tests for field distributions. Add coverage showing that a prior with negative support, such as Normal(0,1), is rejected for this positive-only field; done means the test reliably captures the invalid case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.