8000 Update ami430.py by Towby1234 · Pull Request #1206 · pymeasure/pymeasure · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update ami430.py #1206

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update ami430.py #1206

wants to merge 1 commit into from

Conversation

Towby1234
Copy link

Improved documentation and fixed bug in function

Improved documentation and fixed bug in function
@@ -138,7 +138,7 @@ def ramp(self):

def has_persistent_switch_enabled(self):
""" Returns a boolean if the persistent switch is enabled. """
return bool(self.ask("PSwitch?"))
return bool(int(self.ask("PSwitch?")))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test it?
Would you mind adding a test for it?

@BenediktBurger
Copy link
Member

Thank 7942 s for your contribution.

A small comment. If you want, you may add yourself to the authors.txt. If not, please tell me, such that I may merge without your name.

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

Successfully merging this pull request may close these issues.

2 participants
0