exosim.tools.adc_gain_estimator#

Classes#

ADCGainEstimator

It computes the desired ADC gain, given the number of bits used by the ADC

Module Contents#

class ADCGainEstimator(options_file, output=None)[source]#

Bases: exosim.tools.exosim_tool.ExoSimTool

It computes the desired ADC gain, given the number of bits used by the ADC and the maximum number of counts in the pixel to represent.

Returns:

ADC gain factors

Return type:

dict

Examples

>>> import exosim.tools as tools
>>>
>>> tools.ADCGainEstimator(
...     options_file="tools_input_example.xml"
... )
model(parameters)[source]#
Parameters:

parameters (dict) – dictionary contained the sources parameters. This is usually parsed from LoadOptions

Returns:

  • float – adc gain factor

  • int – max adc value

  • str – data type used in ExoSim