Dobyโ€™s ESA Pyxel Logs๐ŸŒ™

๐Ÿ“ Pyxel Contribution: Stale YAML Examples and Copied Docstring Summaries

Summary: Four small documentation fixes, plus the matching schema update, found by mechanically diffing the docs and docstrings against Pyxel's JSON Schema while building Pyxel Config Lab.

URL:
https://gitlab.com/esa/pyxel/-/merge_requests/1245

โœจ Overview

Copying a documentation example should give a configuration that works. Two YAML examples no longer matched their model signatures, and two docstrings described a different function, which also carried into the generated JSON Schema and the rendered API docs.

The docstring part closes issue #1059, which I reported first. This MR replaces my earlier !1244, which covered only the two YAML examples.


๐Ÿ”ง Changes

  • simple_measurement (pixel_to_signal.rst): the example wrapped the argument in a legacy noise: list. The signature is simple_measurement(detector, gain=None), so gain now sits directly under arguments:.
  • arctic_remove (charge_transfer_models.rst): the example used the old instant_traps: layout. It now uses flat trap_densities / trap_release_timescales arrays, matching the arctic_add example in the same file.
  • remove_cosmic_rays: the docstring summary was copied from extract_roi_to_xarray. It now describes cosmic ray removal via L.A.Cosmic.
  • source_extractor: same copied summary, now describing source extraction. The summary on the deprecated extract_roi_to_xarray is left untouched.
  • pyxel_schema.json: the description fields for the two models above match the corrected docstrings, which keeps check_json_schema green.

๐Ÿฆ• Authored by: Doby Baxter
๐ŸŒŒ Contribution for: ESA Pyxel Project

โš™๏ธ Config Lab