Doby’s ESA Pyxel Logs🌙

🧩 Pyxel Contribution: dark_current_dd and dark_current_tid Names

Summary: Makes the model catalogue and documentation use the names the package exports, dark_current_dd and dark_current_tid.

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

✨ Overview

The charge_generation catalogue and the model documentation named these models dark_current_DD and dark_current_TID, while the package (and the JSON Schema) exports dark_current_dd and dark_current_tid. A configuration copied from either example loaded and then stopped with:

Function: 'dark_current_DD' is not contained in 'pyxel.models.charge_generation'

get_metadata()["charge_generation"]["dark_current_dd"] raised a KeyError too.


🔍 Problem Analysis

Behind the name, each example had a second problem:

  • The dark_current_dd example passed NIEL, where the parameter is niel.
  • The dark_current_tid example had a tab before a comment, so it did not parse as YAML at all.

🔧 Technical Changes

  • Both catalogue entries and both documentation examples use the exported names.
  • The examples use niel and spaces.

🧪 Validation

  • ✅ A new test checks that each entry is found under its function's name, and that its example names that function with arguments it takes.
  • ✅ The test fails without the change and passes with it.
  • ✅ Both examples, with a dose filled in, load and run.

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

⚙️ Config Lab