Leaf Clamp LEDs Calibration =========================== .. automodule:: jii_multispeq_protocols.protocols.calibrations.leaf_clamp_leds_calibration :members: :undoc-members: :show-inheritance: :no-index: :no-title: Basic Usage ----------- .. code-block:: python :caption: *Example:* Import statement for the **leaf_clamp_leds_calibration** protocol ## Import leaf_clamp_leds_calibration from jii_multispeq_protocols.protocols.calibrations import leaf_clamp_leds_calibration as _leaf_clamp_leds_calibration ---- Sequence -------- .. mermaid:: %%{ init: { "theme": "base", "themeVariables": {"primaryColor": "#49e06d", "primaryTextColor": "#005e5e", "primaryBorderColor": "#005e5e", "lineColor": "#fff381", "secondaryColor": "#afd7f4", "tertiaryColor": "#D7EBF9"} } }%% flowchart LR START((Start)) A0["`**cal_led_7**`"]:::protocol START ==> A0 A0 ==> END A0 -.-> |1x| A0 linkStyle 2 stroke-width:3px END(( End )) classDef protocol text-align:left,white-space:pre; ---- Details ------- Code ~~~~ .. code-block:: python :caption: Protocol Code [ { '_protocol_set_': [ { 'label': 'cal_led_7', 'protocol_repeats': '#l1', 'qpar_led_cal': [7, '@p1', '@p2', 20]}], 'set_repeats': 1, 'v_arrays': [[6000], [25, 600, 3000], [600, 3000, 6000]]}] ---- Analysis -------- Usage ~~~~~ .. code-block:: python :caption: Analysis Example (requires ``JII-MultispeQ`` package) from jii_multispeq import measurement as _measurement from jii_multispeq_protocols.protocols.calibrations import leaf_clamp_leds_calibration as _leaf_clamp_leds_calibration ## Take a measurement using the MultispeQ data, crc32 = _measurement.measure(port="", protocol=_leaf_clamp_leds_calibration, filename=None, notes="") ## The analyze function of JII-MultispeQ helps to provide the correct format output = _measurement.analyze( data, _leaf_clamp_leds_calibration._analyze ) ## View Analysis output (as table) _measurement.view( output ) Function Details ~~~~~~~~~~~~~~~~ .. autofunction:: jii_multispeq_protocols.protocols.calibrations.leaf_clamp_leds_calibration._analyze :no-index: Example Data ~~~~~~~~~~~~ ====================== ============================================================================================ Parameter Value ====================== ============================================================================================ device_battery 101 device_firmware 2.3432 device_id 41:00:08:6b device_name MultispeQ device_version 2 max_allowed_par [6000] max_setpoint_for_led:0 2310.0 r2_cal_led_7:0 0.996 r2_cal_led_7:1 0.999 r2_cal_led_7:2 0.9978 time 1598118193361 toDevice par_to_dac_lin+7+85.0+148.0+210.0+335.0+584.0+1330.0+2310.0+2310.0+par_max_setting+7+2310.0+ ====================== ============================================================================================