Skip to content

Fix critical logic bug and add error handling for unmatched inputs#7

Open
germanschnyder wants to merge 1 commit intomasterfrom
claude/review-code-errors-bDne1
Open

Fix critical logic bug and add error handling for unmatched inputs#7
germanschnyder wants to merge 1 commit intomasterfrom
claude/review-code-errors-bDne1

Conversation

@germanschnyder
Copy link
Copy Markdown
Owner

  • Fix flux_crs.append() being inside the inner coordinate loop in
    crstats.py, which produced incorrect flux statistics by appending
    intermediate cumulative values instead of per-CR totals
  • Raise ValueError in instruments.py when instrument name is unknown
    instead of silently returning None
  • Raise ValueError in helpers.py when file extension has no match
    instead of logging an error and implicitly returning None

https://claude.ai/code/session_01EmypcgPKuQ6fh7kzhCwoWN

- Fix flux_crs.append() being inside the inner coordinate loop in
  crstats.py, which produced incorrect flux statistics by appending
  intermediate cumulative values instead of per-CR totals
- Raise ValueError in instruments.py when instrument name is unknown
  instead of silently returning None
- Raise ValueError in helpers.py when file extension has no match
  instead of logging an error and implicitly returning None

https://claude.ai/code/session_01EmypcgPKuQ6fh7kzhCwoWN
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