Repository navigation
Conversation
Reads ALS CCD FITS frames where the primary HDU is metadata-only and the image lives in an extension named 'Images'. Primary-header cards (including HIERARCH keys) become node metadata, the image header is nested under 'image_hdu', and small tables such as 'Izeros' are copied into 'extensions'. Adds a bl11012 extra (astropy), maps .fits to application/fits in the server config, installs the extra in the container, and type-checks the adapter strictly like bl733. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Synthetic FITS files mirror the beamline layout. Covers HDU selection and fallbacks, byte order, JSON-safe metadata, table capture, and a round trip through register() and a Tiled server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Tiled adapter for the CCD FITS files written at ALS BL11.0.1.2 (RSoXS).
Imagesextension. If that is missing, it falls back to the first 2-D extension, then to the primary HDU.image_hduso it does not overwrite the primary header.Izerosare copied intoextensions. Tables over 1024 rows are summarized instead.Changes
splash_tiled.bl11012.adapters.fits:FITSAdapter, with specals-bl11012-fits.bl11012extra (astropy) and a matching pixi feature..fitsmapped toapplication/fitsintiled_config/config.yaml..[bl733,bl11012].splash_tiled.bl11012.adapters.*.Testing
pytest tests/bl11012runs 13 tests on synthetic FITS files. They cover the adapter directly and a full round trip throughregister()and a Tiled server.