Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, expected_value):
_ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value)
import niscope._visatype
# This class is an internal implementation detail
# ctypes definition
# Name must match exactly what the name of the structure type is named in the C API.
class struct_niScope_wfmInfo(ctypes.Structure): # noqa N801
_pack_ = 8
_fields_ = [
('absolute_initial_x', niscope._visatype.ViReal64),
('relative_initial_x', niscope._visatype.ViReal64),
('x_increment', niscope._visatype.ViReal64),
('actual_samples', niscope._visatype.ViInt32),
('offset', niscope._visatype.ViReal64),
('gain', niscope._visatype.ViReal64),
('reserved1', niscope._visatype.ViReal64),
('reserved2', niscope._visatype.ViReal64),
]
def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0,
x_increment=0.0, actual_samples=0, offset=0.0, gain=0.0,
reserved1=0.0, reserved2=0.0):
super(ctypes.Structure, self).__init__()
if data is not None:
self.absolute_initial_x = data.absolute_initial_x
self.relative_initial_x = data.relative_initial_x
self.x_increment = data.x_increment
self.actual_samples = data.actual_samples
self.offset = data.offset
self.gain = data.gain
self.reserved1 = data.reserved1