Skip to content

419 switch to fitsio v2#930

Merged
mpound merged 118 commits intomainfrom
419-switch-to-fitsio-v2
Mar 9, 2026
Merged

419 switch to fitsio v2#930
mpound merged 118 commits intomainfrom
419-switch-to-fitsio-v2

Conversation

@astrofle
Copy link
Copy Markdown
Collaborator

No description provided.

tchamberlin and others added 30 commits November 24, 2025 13:06
This requires the use of fitsio, which instantly complicates things because we must support non-ascii strings in 20M FITS files. So we have to monkeypatch fitsio, since it doesn't support this use case directly
Introduce `dysh online` command for real-time monitoring of GBT SDFITS
sessions, with support for:
- Auto-discovery of active sessions from sdfitsStatus.txt
- Resilient file watching that survives directory/file deletion
- Detection scan number regression/decrease
- Detection of duplicate scan numbers

Add `dysh simulate-online` command for testing online mode by replaying
existing SDFITS sessions scan-by-scan with configurable timing.

Fix bugs in OnlineGBTFITSLoad:
- Set self._online when directory path is provided
- Fix mtime loop accumulator bug in _reload()
- Add FileNotFoundError for non-existent paths

Add unit tests for OnlineGBTFITSLoad covering file growth detection,
missing file handling, file recreation, and scan anomaly detection.
Also forgot to track cli.py...
Ensure that we are still caching the file in mem when accessed via astropy

Ensure that we are using that cache on subsequent row-level reads via fitsio. i.e. we don't want to hit disk to load 2 rows from the file if they are already available via the hdu in mem
   updated doc on that.
2) Rename "PROC" column to "PROCS" because that is the name of the
   equivalent column in the index file.
…the smae files as GBTFITSLoad. add -b for FITSBackend
@mpound mpound self-requested a review March 4, 2026 19:35
Copy link
Copy Markdown
Collaborator

@mpound mpound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All comments and concerns of Pedro have been resolved.

mpound and others added 21 commits March 4, 2026 11:48
- rename load_all_rows to load_all
- add test for load_all
@mpound mpound merged commit 7875716 into main Mar 9, 2026
13 of 18 checks passed
@astrofle astrofle deleted the 419-switch-to-fitsio-v2 branch March 10, 2026 19:39
@astrofle astrofle mentioned this pull request Mar 18, 2026
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.

3 participants