Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def put_value(self, value):
"""
Set our PV's value in EPICS.
:param value: The value we'd like to put to our PV.
:type value: int or float or str or np.ndarray, depending on our
record type.
"""
if self.count == 1:
value = self.python_type(value)
try:
self.pv.put(value)
except pyca.caexc as e:
print("pyca error: {}".format(e))