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

incorrect format specifier in ophyd.signal._get_with_timeout() #902

Closed
prjemian opened this issue Sep 4, 2020 · 0 comments · Fixed by #903
Closed

incorrect format specifier in ophyd.signal._get_with_timeout() #902

prjemian opened this issue Sep 4, 2020 · 0 comments · Fixed by #903
Assignees
Labels

Comments

@prjemian
Copy link
Contributor

prjemian commented Sep 4, 2020

Just got bitten by a ValueError: Precision not allowed in integer format specifier coming from this code:

ophyd/ophyd/signal.py

Lines 1057 to 1060 in 6a6ebea

if info is None:
raise ReadTimeoutError(
f"Failed to read {pv.pvname} "
f"within {timeout:.2} sec")

Is it missing a float specifier? I believe so. Easy fix for two places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant