New Focus picomotors module

Mirror movement using the New Focus picomotors.

class place.plugins.new_focus.new_focus.Picomotor(config, plotter)[source]

Bases: place.plugins.instrument.Instrument

The picomotor class.

config(metadata, total_updates)[source]

Configure the picomotors for an experiment.

Parameters:
  • metadata (dict) – metadata for the experiment
  • total_updates (int) – the number of update steps that will be in this experiment
update(update_number, progress)[source]

Move the mirror.

Parameters:
  • update_number (int) – the current update count
  • progress (dict) – the PLACE values sent to your web application
Returns:

the position data collected

Return type:

numpy.array

cleanup(abort=False)[source]

Stop picomotor and end experiment.

Parameters:abort (bool) – indicates the experiment is being aborted rather than having finished normally
place.plugins.new_focus.new_focus.polar_to_cart(rho, phi)[source]

Convert polar to cartesian