Skip to content

Commit

Permalink
Allow floats for custom PID task arguments (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJKoopman authored Oct 16, 2023
1 parent 03971e0 commit 7aad264
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions socs/agents/lakeshore372/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,9 @@ def get_input_setup(self, session, params):
@ocs_agent.param('setpoint', type=float)
@ocs_agent.param('heater', type=str)
@ocs_agent.param('channel', type=int)
@ocs_agent.param('P', type=int)
@ocs_agent.param('P', type=float)
@ocs_agent.param('I', type=float)
@ocs_agent.param('update_time', type=int)
@ocs_agent.param('update_time', type=float)
@ocs_agent.param('sample_heater_range', type=float, default=10e-3)
@ocs_agent.param('test_mode', type=bool, default=False)
def custom_pid(self, session, params):
Expand All @@ -946,9 +946,9 @@ def custom_pid(self, session, params):
setpoint (float): Setpoint in Kelvin
heater (str): 'still' or 'sample'
channel (int): LS372 Channel to PID off of
P (int): Proportional value in Watts/Kelvin
I (int): Integral Value in Hz
update_time (int): Time between PID updates in seconds
P (float): Proportional value in Watts/Kelvin
I (float): Integral Value in Hz
update_time (float): Time between PID updates in seconds
sample_heater_range (float): Range for sample heater in Amps.
Default is 10e-3.
test_mode (bool, optional): Run the Process loop only once.
Expand Down

0 comments on commit 7aad264

Please sign in to comment.