Skip to content

Ignore non-advancing tess-point sector midtimes - #42

Merged
eagnespuerto merged 1 commit into
mainfrom
fix/microlensing-window-order
Oct 10, 2026
Merged

eagnespuerto merged 1 commit into
mainfrom
fix/microlensing-window-order

Conversation

@eagnespuerto

Copy link
Copy Markdown
Owner

Problem

test_microlensing_coverage.py::test_all_known_windows_are_monotonic_in_start fails on main. tess-point 0.9.5 ships a placeholder midtime for sector 135 (BTJD 4058.5, about 950 days before sector 134). That gives S135 a bogus window, so all_known_windows() goes backwards in time.

Fix (backend/app/tess_sector_dates.py, mirrored in pios/vetstar_pi/tess_sector_dates.py)

_load_tess_point_midtimes stops at the first midtime that doesn't advance. S135 is now dropped instead of being given the wrong window.

Testing

  • test_microlensing_coverage.py: 13 passed (was 1 failed).
  • Full backend suite, run file by file: 84 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_0117Lzq78TmMPd1FXyxq2SXF


Generated by Claude Code

tess-point 0.9.5 ships a placeholder midtime for sector 135 (BTJD 4058.5,
~950 d before sector 134), which made all_known_windows() non-monotonic
and broke test_all_known_windows_are_monotonic_in_start. Stop loading
midtimes at the first one that doesn't advance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117Lzq78TmMPd1FXyxq2SXF
@eagnespuerto
eagnespuerto marked this pull request as ready for review October 10, 2026 14:41
@eagnespuerto
eagnespuerto merged commit cdf2215 into main Oct 10, 2026
3 checks passed
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