pylabrobot.centrifuge.vspin.VSpin.__init__#

VSpin.__init__(calibration_offset: int, device_id: str | None = None)#
Parameters:
  • device_id (str | None) – The libftdi id for the centrifuge. Find using python3 -m pylibftdi.examples.list_devices

  • calibration_offset (int) – The number of steps after the home (setup) position to reach the bucket. To find this value, start with an arbitrary value, call setup() and then get_position(). Then, move to the bucket by manually pushing it and call get_position() again. The difference between the two values is the calibration offset. The reason we need an offset / relative distance is the setup position will change between runs.