๐ 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 legacynoise:list. The signature issimple_measurement(detector, gain=None), sogainnow sits directly underarguments:.arctic_remove(charge_transfer_models.rst): the example used the oldinstant_traps:layout. It now uses flattrap_densities/trap_release_timescalesarrays, matching thearctic_addexample in the same file.remove_cosmic_rays: the docstring summary was copied fromextract_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 deprecatedextract_roi_to_xarrayis left untouched.pyxel_schema.json: thedescriptionfields for the two models above match the corrected docstrings, which keepscheck_json_schemagreen.
๐ฆ Authored by: Doby Baxter
๐ Contribution for: ESA Pyxel Project