Skip to content

feat: read geometry and pixel mask from the header (UC-1.2) #8

Backlog

Description

@Akadib

Problem

As a labeler, I want the wavelength, distance and beam centre of each run read from its own header, so ice-ring positions are right for that run.

Proposed solution

  • Geometry dataclass fields: wavelength_A, distance_mm, beam_center_px (x, y), pixel_size_mm, shape (rows, columns), detector, saturation, collection_date.
  • Geometry.energy_eV is a property computed from the wavelength.
  • The pixel mask is stored on the run (run.mask, True = bad pixel).
  • Paths: entry/instrument/beam/incident_wavelength, entry/instrument/detector/detector_distance (metres), beam_center_x, beam_center_y, x_pixel_size, detectorSpecific/pixel_mask, saturation_value, description, detectorSpecific/data_collection_date.
  • Missing pixel mask gives a warning, and the mask falls back to "frame value == uint32 max".

Done when

  • Unit tests on the synthetic run
  • realdata test on A07: λ ≈ 0.9537 Å, distance ≈ 250.0 mm, beam centre ≈ (1502.1, 1659.8)
  • News file added

Activity

  1. added theissue type on Dec 1, 2026
  2. added
    enhancement
    good first issue
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions