Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding end_scan tasks in the base class #96

Open
decarlof opened this issue Jan 26, 2021 · 0 comments
Open

adding end_scan tasks in the base class #96

decarlof opened this issue Jan 26, 2021 · 0 comments
Labels
question Further information is requested

Comments

@decarlof
Copy link
Member

will it make sense to move these end_scan() tasks

        # Set the rotation speed to maximum
        self.epics_pvs['RotationSpeed'].put(self.max_rotation_speed)
        # Move the sample in.  Could be out if scan was aborted while taking flat fields
        self.move_sample_in()
        if self.return_rotation == 'Yes':
        # Reset rotation position by mod 360, the actual return 
        # to start position is handled by super().end_scan()
            current_angle = self.epics_pvs['Rotation'].get() %360
            self.epics_pvs['RotationSet'].put('Set', wait=True)
            self.epics_pvs['Rotation'].put(current_angle, wait=True)
            self.epics_pvs['RotationSet'].put('Use', wait=True)

from 2-BM to the base class?

@decarlof decarlof added the question Further information is requested label Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant