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

Revert "Updates to PVPostionerSoftDone" #1014

Closed
wants to merge 1 commit into from

Conversation

gfabbris
Copy link
Collaborator

Reverts #1005

@gfabbris gfabbris requested a review from prjemian August 27, 2024 14:58
@gfabbris
Copy link
Collaborator Author

@prjemian: I think this will work. You can actually see the changes here, and we can just close this if we want to keep it.

@prjemian
Copy link
Contributor

we can just close this if we want to keep it.

not sure I understand. Can you rephrase?

@prjemian
Copy link
Contributor

This branch did not trigger CI yet. It passed pytest -vvv ./apstools/devices locally with no failures.

@gfabbris
Copy link
Collaborator Author

I mean that, since it was already merged into the 916-PVPositionerSoftDone-update branch, if you want to keep these changes, then we don't merge this PR.

@gfabbris
Copy link
Collaborator Author

By the way, forgot the add the comments I had for this:

Main proposed changes:

  • Keeps setpoint and readback as normal EpicsSignal. But now, changes to the setpoint are sent to the target through a subscription.
  • Forces the done signal to be False when the device is moved.
  • Changes the default value of use_target to False. There is one disadvantage of using the target signal: if you change the setpoint "manually" in EPICS (and the device moves to the new setpoint), the Bluesky device will not know that it is inposition because target was not updated. Therefore, I recommend to set use_target=True only when EPICS changes the setpoint value while ramping (like in the Lakeshore 340).
  • Removes python 3.8 from unit tests. It is leading to an import error, see error.

@gfabbris
Copy link
Collaborator Author

This branch did not trigger CI yet. It passed pytest -vvv ./apstools/devices locally with no failures.

I think these are the CI, got triggered when I accidentally merged: https://github.com/BCDA-APS/apstools/actions/runs/10568053789

@gfabbris
Copy link
Collaborator Author

It looks like this error was due to a bug in setuptools that got fixed, it works now (https://github.com/gfabbris/apstools/actions/runs/10584246206/job/29328167045?pr=4). Should we add it back?

@prjemian
Copy link
Contributor

It looks like this error was due to a bug in setuptools that got fixed, it works now (https://github.com/gfabbris/apstools/actions/runs/10584246206/job/29328167045?pr=4). Should we add it back?

It was not a problem when the SpecWriterCallback2 was developed:

Base automatically changed from 916-PVPositionerSoftDone-update to main August 28, 2024 14:55
@prjemian
Copy link
Contributor

@gfabbris : With #954 merged, can you close this PR?

@prjemian prjemian added this to the 1.7.0 milestone Aug 28, 2024
@gfabbris gfabbris closed this Aug 28, 2024
@gfabbris gfabbris deleted the revert-1005-pvpositioner branch August 28, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants