## What was built
Add a `median(values)` function to src/calculator.py returning the median, raising ValueError on an empty sequence. Follow the conventions in CLAUDE.md.
## Acceptance criteria
- The ticket objective is satisfied: Add a median function to the calculator
## Commits
| Commit | Summary | Node |
|---|---|---|
| `df8d292a6e61` | test(sveta): Write tests for median function | `341a13e1a6b0` |
| `7e7645659968` | feat(nadia): Implement median function in src/calculator.py | `d0a2754c13cc` |
## Run
Cost: 0.0010 USD · Nodes: 8 · Verification: make verify
Closes #13
**Outcome:** done
**Changed:** src/calculator.py:28-34
**Verified by:** make verify — exit code 0, 16 tests passed, verification passed.
**Findings:**
- src/calculator.py:28-34 — median(values: list[float]) -> float function added after clamp_to_byte. Full type annotations, no comments/docstrings. Raises ValueError on empty sequence. Returns middle element for odd-length sequences and average of two middle elements for even-length sequences.
**Open:** Tests for the new function need to be written by @sveta.
**Confidence:** high
Typosaurus-Run: 529efb295dd94e799a5e47a9ef0c6c16
Typosaurus-Node: d0a2754c13cc4742bb46790341416bd6
Typosaurus-Agent: @nadia
Refs: #13
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What was built
Add a
median(values)function to src/calculator.py returning the median, raising ValueError on an empty sequence. Follow the conventions in CLAUDE.md.Acceptance criteria
Commits
df8d292a6e61341a13e1a6b07e7645659968d0a2754c13ccRun
Cost: 0.0010 USD · Nodes: 8 · Verification: make verify
Closes #13
b78ecc077etoa80acb36c3a80acb36c3todf8d292a6e