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

add aps cycle name to ApsMachineParametersDevice #254

Closed
prjemian opened this issue Sep 10, 2019 · 2 comments · Fixed by #261
Closed

add aps cycle name to ApsMachineParametersDevice #254

prjemian opened this issue Sep 10, 2019 · 2 comments · Fixed by #261
Assignees
Milestone

Comments

@prjemian
Copy link
Contributor

Absent any facility PV that provides the name of the current operating cycle, this can be approximated by python computation (as long as the present scheduling pattern is maintained):

dt = datetime.datetime.now()
aps_cycle = f"{dt.year}-{int((dt.month-0.1)/4) + 1}"
@prjemian prjemian added this to the 1.1.15 milestone Sep 10, 2019
@prjemian prjemian self-assigned this Sep 10, 2019
@prjemian
Copy link
Contributor Author

How to make this into an ophyd Signal?

@prjemian
Copy link
Contributor Author

ophyd.sim has some examples

prjemian added a commit that referenced this issue Nov 22, 2019
prjemian added a commit that referenced this issue Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant