From 7d1aa9ef6afed77be083593b4448004c71b2595e Mon Sep 17 00:00:00 2001 From: Brian Koopman Date: Thu, 12 Oct 2023 13:49:37 -0400 Subject: [PATCH] Allow floats for custom PID task arguments --- socs/agents/lakeshore372/agent.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/socs/agents/lakeshore372/agent.py b/socs/agents/lakeshore372/agent.py index b83ec080c..5ed51aa5d 100644 --- a/socs/agents/lakeshore372/agent.py +++ b/socs/agents/lakeshore372/agent.py @@ -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): @@ -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.