Fix bug when generating JSON Schema file
The JSON Schema file cannot be generated if the arguments order in the documentation does not match the order defined in the function.
Here is an example:
def exponential_qe(
detector: "Detector",
filename: Union[str, Path],
x_epi: float,
detector_type: str, # BI: Back-Illuminated, FI: Front-Illuminated
default_wavelength: Union[str, float, None] = None, # User must provide a value
x_poly: float = 0.0, # Default x_poly to 0.0, change only if the detector is front-illuminated
delta_t: float = 0.0, # Temperature difference from 300 K
cce: float = 1.0, # Default Charge Collection Efficiency (CCE)
) -> None:
"""
Apply QE with temperature correction for absorptivity using a provided or backup coefficient `c`.
Parameters
----------
detector : Detector
Pyxel Detector object.
filename : str or Path
Path to the CSV file containing reflectivity, absorptivity, and c.
x_poly : float
Thickness of the poly layer in cm.
x_epi : float
Thickness of the epitaxial layer in cm.
delta_t : float
Temperature difference from 300 K (default: 0.0).
detector_type : str
Type of detector ("BI" for Back-Illuminated, "FI" for Front-Illuminated).
cce : float
Charge Collection Efficiency (default: 1.0).
default_wavelength : str or float
Wavelength in nm for 2D photon arrays, or 'multi' for multiple wavelengths (no default value).
"""