Skip to content

FIREFLY-1923: Fix inability to load large FITS tables#1981

Open
loitly wants to merge 1 commit into
devfrom
FIREFLY-1923-2047-nan-values
Open

FIREFLY-1923: Fix inability to load large FITS tables#1981
loitly wants to merge 1 commit into
devfrom
FIREFLY-1923-2047-nan-values

Conversation

@loitly

@loitly loitly commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

https://jira.ipac.caltech.edu/browse/FIREFLY-1923
https://jira.ipac.caltech.edu/browse/FIREFLY-2047

FIREFLY-1923:

  • FITSTableReader: replaced getRow()'s per-cell reflection-based type
    dispatch (getValAsObject(), nRow x nCol times) with getColumn() based
    reads that resolve dispatch once per column instead.
  • deg2pix: remove NaN, clamp jp/jm to [0, nside) on both bounds (fixes left-shift overflow)
  • decimate_key/decimation stats: guard NaN and +/-Infinity, not just NaN
  • test file: It's over 3GB. Trey has one. Let me know if you need me to provide it.

FIREFLY-2047: Improve decimation handling of non-finite values

Test: https://firefly-1923-2047-nan-values.irsakubedev.ipac.caltech.edu/firefly/

- FITSTableReader: read columns via getColumn() instead of row-by-row
  getRow(), resolving type dispatch once per column instead of per cell
- deg2pix: scrub NaN, clamp jp/jm to [0, nside) on both bounds (fixes
  left-shift overflow)
- decimate_key/decimation stats: guard NaN and +/-Infinity, not just NaN

FIREFLY-2047: Improve decimation handling of non-finite values
- throw a clear error when a column has no finite values
- exclude merged invalid-rows bucket from decimated output
@loitly loitly added this to the 2026.2 milestone Jul 15, 2026
@loitly loitly requested a review from robyww July 15, 2026 19:19
@loitly loitly self-assigned this Jul 15, 2026
@loitly loitly added the bug label Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant