Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/sorunlib/hwp.py
Copy link
Member

Choose a reason for hiding this comment

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

You may have noticed the failing tests in the checks. Two tests in test_hwp.py are failing. These should be modified to handle cases for the new fast argument.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def set_freq(freq):
check_response(hwp, resp)


def stop(active=True, brake_voltage=None):
def stop(active=True, brake_voltage=None, fast=False):
Copy link
Member

Choose a reason for hiding this comment

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

Please add the new fast argument to the docstring.

"""Stop the HWP.

Args:
Expand All @@ -35,9 +35,9 @@ def stop(active=True, brake_voltage=None):

if active:
if brake_voltage is None:
resp = hwp.brake()
resp = hwp.brake(fast=fast)
else:
resp = hwp.brake(brake_voltage=brake_voltage)
resp = hwp.brake(brake_voltage=brake_voltage, fast=fast)
check_response(hwp, resp)
else:
resp = hwp.pmx_off()
Expand Down
Loading