Response

class sofia_redux.scan.channels.mode.response.Response(channel_group=None, gain_provider=None, name=None)[source]

Bases: Mode

An abstract response mode.

A mode is an object that is applied to a given channel group, defining what constitutes its “gain” and how to operate thereon. This is also dependent on a gain provider.

The response mode contains the additional get_signal method to extract a Signal object from an integration.

Parameters:
channel_groupChannelGroup, optional

The channel group owned by the mode.

gain_providerstr or GainProvider, optional

If a string is provided a FieldGainProvider will be set to operate on the given field of the channel group.

namestr, optional

The name of the mode. If not provided, will be determined from the channel group name (if available).

Methods Summary

get_signal(integration)

Return a signal object from an integration.

Methods Documentation

abstract get_signal(integration)[source]

Return a signal object from an integration.

Parameters:
integrationIntegration
Returns:
Signal