Doby’s ESA Pyxel Logs🌙

🧩 Pyxel Contribution: Detector Filename Typed as a Path

Summary: Types the load_detector and save_detector filename as a path in the JSON Schema, where it was declared a number.

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

✨ Overview

generate_detectors() hardcodes ModelLoadSaveDetectorArguments, and its filename field was declared float. Both models take str | Path, so the generated schema asked for a number where the runtime wants a path, and any real configuration was rejected:

'detector.h5' is not of type 'number'

🔧 Technical Changes

  • The field is declared str | Path, matching the signatures and how file arguments are typed elsewhere in the schema.
  • pyxel/static/pyxel_schema.json is regenerated with tox -e json_schema. Only ModelLoadDetector and ModelSaveDetector change.
  • Kept separate from !1167, since the two are unrelated.

🦕 Authored by: Doby Baxter
🌌 Contribution for: ESA Pyxel Project

⚙️ Config Lab