Transfocator Information

class transfocate.transfocator.Transfocator(prefix, *, nominal_sample=399.88103, **kwargs)[source]

Class to represent the MFX Transfocator

property current_focus

The distance from the focus of the Transfocator to nominal_sample

Note

If no lenses are inserted this will retun NaN

find_best_combo(target=None, show=True, **kwargs)[source]

Calculate the best lens array to hit the nominal sample point

Parameters:
  • target (float, optional) – The target image of the lens array. By default this is nominal_sample

  • show (bool, optional) – Print a table of the of the calculated lens combination

  • kwargs – Passed to Calculator.find_solution()

focus_at(value=None, wait=False, timeout=None, **kwargs)[source]

Calculate a combination and insert the lenses

Parameters:
  • value (float, optional) – Chosen focal plane. Nominal sample by default

  • wait (bool, optional) – Wait for the motion of the transfocator to complete

  • timeout (float, optional) – Timeout for motion

  • kwargs – All passed to find_best_combo()

Returns:

Status that represents whether the move is complete

Return type:

StateStatus

property lenses

Component lenses

set(value, **kwargs)[source]

Set the Transfocator focus

Parameters

property tfs_lenses

Transfocator lenses

property xrt_lenses

Lenses in the XRT