How to use the pyca.caexc function in pyca

To help you get started, we’ve selected a few pyca examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github slaclab / pydm / pydm / data_plugins / epics_plugins / psp_plugin_component.py View on Github external
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))

pyca

Opencast Capture Agent

LGPL-3.0
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis

Popular pyca functions