Chopper

class sofia_redux.scan.chopper.chopper.Chopper(x=None, y=None, time=None, threshold=None)[source]

Bases: ABC

Initialize the chopper object.

Parameters:
xunits.Quantity (numpy.ndarray)

The chopper x-positions.

yunits.Quantity (numpy.ndarray)

The chopper y-positions.

timeunits.Quantity (numpy.ndarray)

The time of each chopper (x, y) measurement.

thresholdunits.Quantity

The distance threshold over which to define a “chop”.

Attributes Summary

amplitude

Return the chop amplitude.

angle

Return the chop angle.

frequency

Return the chop frequency.

stare_duration

Return the stare duration of the chopper.

Methods Summary

analyze_xy(x, y, time, threshold)

Analyse the chopper signal to determine internal parameters.

get_chop_table_entry(name)

Return a parameter value for a given name.

Attributes Documentation

amplitude

Return the chop amplitude.

Returns:
units.Quantity
angle

Return the chop angle.

Returns:
units.Quantity
frequency

Return the chop frequency.

Returns:
units.Quantity
stare_duration

Return the stare duration of the chopper.

Returns:
timeunits.Quantity

Methods Documentation

analyze_xy(x, y, time, threshold)[source]

Analyse the chopper signal to determine internal parameters.

Parameters:
xunits.Quantity

The x-position of the chopper.

yunits.Quantity

The y-position of the chopper.

timeunits.Quantity

The time at each (x, y) measurement.

thresholdunits.Quantity

The distance threshold over which to consider a chop transition.

Returns:
None
get_chop_table_entry(name)[source]

Return a parameter value for a given name.

Parameters:
namestr
Returns:
value