pqc.features.backend_keysΒΆ

Normalize backend keys for QC grouping.

The pipeline expects every row to have:

  • sys: TEL.BACKEND.CHANNELFREQ

  • group: TEL.BACKEND.BANDFREQ

TEL/BACKEND/BANDFREQ are primarily parsed from timfile names of the form TEL.BACKEND.BANDFREQ.tim. When ambiguous, the module falls back to flags or per-row frequency metadata.

See also

pqc.pipeline.run_pipeline: Uses these helpers to normalize metadata.

Module Attributes

KNOWN_TELS

Known telescope identifiers used for timfile-derived keys.

Functions

ensure_sys_group(df)

Fill missing sys/group using timfile naming and frequencies.

parse_timfile_triplet(timfile_path)

Parse TEL[.BACKEND][.BANDFREQ] from a timfile basename.