Skip to content

feat: read puck, position and run from the file name (UC-1.3) #9

Backlog

Description

@Akadib

Problem

As the beamline scientist, I want every result to say which puck and position it belongs to, for example "Puck A, position 07".

Proposed solution

  • parse_sample_id(path, pattern=None) returns SampleId(puck, position, run), which has a sample_id property.
  • Default pattern matches L_A07_0007_master.h5: puck A, position 07, run 0007, sample_id A07. The pattern is a setting, because the beamline scientist has not confirmed the naming yet.
  • No match gives puck, position and run as None and sample_id unknown.
  • str(sample_id) gives "Puck A, position 07, run 0007".

Done when

  • Parametrized tests: real-style names, testcrystal_0008_master.h5, a custom pattern
  • News file added

Activity

  1. added theissue type on Dec 1, 2026
  2. added
    enhancement
    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

    enhancement

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions