ExampleChannelGroup

class sofia_redux.scan.custom.example.channels.channel_group.channel_group.ExampleChannelGroup(channel_data, indices=None, name=None)[source]

Bases: ExampleChannelData, ChannelGroup

Initialize a channel group for the example instrument.

Parameters:
channel_dataExampleChannelData or ExampleChannelGroup or object

The channel data to reference. If an object is supplied, it must have a valid data attribute.

indicesnumpy.ndarray (int), optional

The indices of the parent data that will belong to the channel group. If no indices are supplied, the entire data will be referenced.

namestr, optional

The name of the channel group.

Methods Summary

read_pixel_data(filename)

Read a pixel data file and apply the results.

set_channel_data(index, channel_info)

Set the channel info for a selected index.

validate_pixel_data()

Validates data read from the pixel data file.

validate_weights()

Validates weight data.

Methods Documentation

read_pixel_data(filename)[source]

Read a pixel data file and apply the results.

Parameters:
filenamestr

File path to the pixel data file.

Returns:
None
set_channel_data(index, channel_info)[source]

Set the channel info for a selected index.

Parameters:
indexint

The channel index for which to set new data.

channel_infodict

A dictionary of the form {field: value} where. The attribute field at ‘index’ will be set to value.

Returns:
None
validate_pixel_data()[source]

Validates data read from the pixel data file.

Returns:
None
validate_weights()[source]

Validates weight data.

Returns:
None