[INSTRM-1998] Fix ion pump status command Created: 22/Jun/23  Updated: 04/Jul/23

Status: In Progress
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: cloomis Assignee: cloomis
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Not sure when this happens, but fix it.

2023-06-21T15:24:31.464 sent xcu_b2 ionpump status (from pfs_PFS_WS2)
2023-06-21T15:24:35.244 xcu_b2 w text="error commanding ionpump: <class 'TypeError'>('NoneType' object is not subscriptable)"
2023-06-21T15:24:35.247 xcu_b2 w text="  Traceback (most recent call last):"
2023-06-21T15:24:35.247 xcu_b2 w text="    File ";unparsedtext="/software/mhs/products/Linux64/ics_xcuActor/2.2.11/python/xcuActor/Controllers/ionpump.py\", line 410, in readOnePump"
2023-06-21T15:24:35.248 xcu_b2 w text="    File ";unparsedtext="/software/mhs/products/Linux64/ics_xcuActor/2.2.11/python/xcuActor/Controllers/ionpump.py\", line 351, in readEnabled"
2023-06-21T15:24:35.248 xcu_b2 w text="    File ";unparsedtext="/software/mhs/products/Linux64/ics_xcuActor/2.2.11/python/xcuActor/Controllers/ionpump.py\", line 234, in sendReadCommand"
2023-06-21T15:24:35.248 xcu_b2 w text="  TypeError: 'NoneType' object is not subscriptable"
2023-06-21T15:24:36.252 xcu_b2 w text="error commanding ionpump: <class 'TypeError'>('NoneType' object is not subscriptable)"
2023-06-21T15:24:36.253 xcu_b2 w text="  Traceback (most recent call last):"
2023-06-21T15:24:36.253 xcu_b2 w text="    File ";unparsedtext="/software/mhs/products/Linux64/ics_xcuActor/2.2.11/python/xcuActor/Controllers/ionpump.py\", line 410, in readOnePump"
2023-06-21T15:24:36.254 xcu_b2 w text="    File ";unparsedtext="/software/mhs/products/Linux64/ics_xcuActor/2.2.11/python/xcuActor/Controllers/ionpump.py\", line 351, in readEnabled"
2023-06-21T15:24:36.255 xcu_b2 w text="    File ";unparsedtext="/software/mhs/products/Linux64/ics_xcuActor/2.2.11/python/xcuActor/Controllers/ionpump.py\", line 234, in sendReadCommand"
2023-06-21T15:24:36.255 xcu_b2 w text="  TypeError: 'NoneType' object is not subscriptable"
2023-06-21T15:24:36.255 xcu_b2 :


 Comments   
Comment by cloomis [ 04/Jul/23 ]

Yuck. When the 4UHV or the MOXA is off/unreachable/etc. the context manager is failing on _enter_. Given how I implemented nested commands this is obnoxious to fix. Can do.

Generated at Sat Feb 10 16:41:56 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.