Skip to content

Support for older submissions for companies#7

Merged
dgunning merged 1 commit into
dgunning:mainfrom
linusbiostat:main
Feb 26, 2023
Merged

Support for older submissions for companies#7
dgunning merged 1 commit into
dgunning:mainfrom
linusbiostat:main

Conversation

@linusbiostat
Copy link
Copy Markdown
Contributor

This makes older submissions available for companies

This makes older submissions available for companies
@dgunning dgunning merged commit 4e91a42 into dgunning:main Feb 26, 2023
sangicook pushed a commit to sangicook/edgartools that referenced this pull request Apr 6, 2026
… case

Address review comment dgunning#7 (Minor) on PR dgunning#764 Sub-project A. The original
zero-division test only asserted ``ef_cqs_strict == 0.0`` in an all-
unverified cohort, which would pass even if the strict denominator math
were broken (numerator is also 0 in that state). That's necessary but
insufficient coverage.

Strengthened to two cases within the same test:

Case A (unchanged intent) — all-unverified degenerate state:
  Guards ef_cqs AND ef_cqs_strict both return 0.0 without raising.

Case B (new) — 1 passing + 1 explained_variance + 1 unverified:
  effective_total = 3 - 0 - 1 - 1 = 1 → lenient ef_cqs = 1/1 = 1.0
  strict_total    = 3 - 0 - 1     = 2 → strict ef_cqs_strict = 1/2 = 0.5

Case B would fail loudly if the strict denominator forgot to subtract
unverified_count, or accidentally subtracted explained_variance_count
(turning it into the lenient formula). The two cases together pin the
full contract: guard correctness + arithmetic correctness.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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