APS-4ID-POLAR / ipython-polar

4-ID-Polar ipython configuration for bluesky (and other)
1 stars 3 forks source link

PVPositioner soft done #118

Closed gfabbris closed 3 years ago

gfabbris commented 3 years ago

Does it need this:

def _setup_move(self, position):
    '''Move and do not wait until motion is complete (asynchronous)'''
    self.log.debug('%s.setpoint = %s', self.name, position)
    self.setpoint.put(position, wait=False)
    # Add this part?
    if self._target_attr != "setpoint":
        getattr(self, self._target_attr).put(position, wait=False)
    if self.actuate is not None:
        self.log.debug('%s.actuate = %s', self.name, self.actuate_value)
        self.actuate.put(self.actuate_value, wait=False)
gfabbris commented 3 years ago

Seems like this also has the issue that it gets stuck if sent to the same position as current.