Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 26, 2024
1 parent 0b63355 commit a0f6fbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ API Reference Full API documentation for core parts of the SOCS library.
agents/holo_fpga
agents/holo_synth
agents/ibootbar
agents/ifm_kq1001_levelsensor
agents/ifm_kq1001_levelsensor
agents/ifm_sbn246_flowmeter
agents/labjack
agents/lakeshore240
Expand Down
10 changes: 5 additions & 5 deletions socs/agents/ifm_kq1001_levelsensor/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def extract(value):
The level in % and the device status.
"""
binary = bin(int(value,16))[2:].zfill(32)
binary = bin(int(value, 16))[2:].zfill(32)
# Decode all of the process data fields, but most of them don't
# matter.
_b_pdv1 = binary[0:16]
Expand All @@ -34,10 +34,10 @@ def extract(value):
_b_out2 = binary[30:31]
_b_out1 = binary[31:32]

pdv1 = int(_b_pdv1,2)*1.0
device_status = int(_b_device_status,2)
return pdv1,device_status
pdv1 = int(_b_pdv1, 2) * 1.0
device_status = int(_b_device_status, 2)

return pdv1, device_status


class LevelSensorAgent:
Expand Down
2 changes: 1 addition & 1 deletion socs/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'CryomechCPAAgent': {'module': 'socs.agents.cryomech_cpa.agent', 'entry_point': 'main'},
'FPGAAgent': {'module': 'socs.agents.holo_fpga.agent', 'entry_point': 'main'},
'FlowmeterAgent': {'module': 'socs.agents.ifm_sbn246_flowmeter.agent', 'entry_point': 'main'},
'LevelSensorAgent': {'module': 'socs.agents.ifm_kq1001_levelsensor.agent', 'entry_point': 'main'},
'LevelSensorAgent': {'module': 'socs.agents.ifm_kq1001_levelsensor.agent', 'entry_point': 'main'},
'FTSAerotechAgent': {'module': 'socs.agents.fts_aerotech.agent', 'entry_point': 'main'},
'GeneratorAgent': {'module': 'socs.agents.generator.agent', 'entry_point': 'main'},
'Hi6200Agent': {'module': 'socs.agents.hi6200.agent', 'entry_point': 'main'},
Expand Down

0 comments on commit a0f6fbf

Please sign in to comment.