Skip to content

Commit

Permalink
lindy delays
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoeders committed Nov 23, 2024
1 parent 1bbf30d commit 81925bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name="yinstruments",
packages=find_packages(),
version="1.6.3",
version="1.6.4",
description="Experiment device control scripts for BYU's Configurable Computing Lab (https://ccl.byu.edu/)",
author="Jeff Goeders",
author_email="jeff.goeders@gmail.com",
Expand Down
3 changes: 3 additions & 0 deletions yinstruments/pdu/lindy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
PDU class"""

import subprocess
from time import sleep
from .pdu import PDU

# standard OID for the functions we will be doing
Expand Down Expand Up @@ -46,6 +47,7 @@ def on(self, port_num):

# execute the command
subprocess.check_output(command)
sleep(self.sleep_time)

# print that the port_num is now on
# print("On:", port_num)
Expand Down Expand Up @@ -79,6 +81,7 @@ def off(self, port_num):

# execute the command
subprocess.check_output(command)
sleep(self.sleep_time)

def reboot(self, port_num):
self.off(port_num)
Expand Down

0 comments on commit 81925bb

Please sign in to comment.