def __init__(self): XMLConfiguration.__init__(self, 'Schematic') self.Add( XMLProperty('Devices', [DeviceConfiguration() for _ in range(0)], 'array', arrayType=DeviceConfiguration())) self.Add( XMLProperty('Wires', [WireConfiguration() for _ in range(0)], 'array', arrayType=WireConfiguration()))
def __init__(self): XMLConfiguration.__init__(self,'DeviceNetList',write=False) self.Add(XMLPropertyDefaultString('DeviceName')) self.Add(XMLPropertyDefaultString('PartName')) self.Add(XMLPropertyDefaultBool('ShowReference',True)) self.Add(XMLPropertyDefaultBool('ShowPorts',True)) self.Add(XMLProperty('Values',[DeviceNetListKeywordConfiguration() for _ in range(0)],'array',arrayType=DeviceNetListKeywordConfiguration()))
def __init__(self): XMLConfiguration.__init__(self, 'PostProcessing') self.Add( XMLProperty('Lines', [PostProcessingLineConfiguration() for _ in range(0)], 'array', arrayType=PostProcessingLineConfiguration()))
def __init__(self): XMLConfiguration.__init__(self,'ProjectFiles') self.Add(XMLPropertyDefaultBool('OpenLastFile',True)) self.Add(XMLPropertyDefaultBool('RetainLastFilesOpened',True)) self.Add(XMLProperty('LastFile',[LastFiles() for _ in range(4)],'array',arrayType=LastFiles())) self.Add(XMLPropertyDefaultBool('AskToSaveCurrentFile',True)) self.Add(XMLPropertyDefaultBool('PreferSaveWaveformsLeCroyFormat',False))
def __init__(self): XMLConfiguration.__init__(self,'Device') self.Add(XMLPropertyDefaultString('ClassName')) self.SubDir(PartPictureConfiguration()) self.Add(XMLProperty('PartProperties',[PartPropertyConfiguration() for _ in range(0)],'array',arrayType=PartPropertyConfiguration())) self.SubDir(DeviceNetListConfiguration()) import SignalIntegrity.App.Preferences for key in SignalIntegrity.App.Preferences['Devices'].dict.keys(): self.SubDir(copy.deepcopy(SignalIntegrity.App.Preferences['Devices'][key]),makeOnRead=True)
def __init__(self): XMLConfiguration.__init__(self, 'Device') self.Add(XMLPropertyDefaultString('ClassName')) self.SubDir(PartPictureConfiguration()) self.Add( XMLProperty('PartProperties', [PartPropertyConfiguration() for _ in range(0)], 'array', arrayType=PartPropertyConfiguration())) self.SubDir(DeviceNetListConfiguration())
def __init__(self, vertexList=None): if vertexList == None: vertexList = [] XMLConfiguration.__init__(self, 'Wire') self.Add( XMLProperty('Vertices', [ Vertex(vertex['Coord'], vertex['Selected']) for vertex in vertexList ], 'array', arrayType=Vertex()))
def __init__(self): XMLConfiguration.__init__(self, 'Plot') self.Add( XMLProperty('S', [[SParameterPlotsConfiguration() for _ in range(0)] for _ in range(0)], 'array', arrayType=SParameterPlotsConfiguration())) self.Add(XMLPropertyDefaultBool('VariableLineWidth', False)) self.Add(XMLPropertyDefaultBool('ShowPassivityViolations', False)) self.Add(XMLPropertyDefaultBool('ShowCausalityViolations', False)) self.Add(XMLPropertyDefaultBool('ShowImpedance', False)) self.Add(XMLPropertyDefaultBool('LogScale', False))
def __init__(self,preferences=False): XMLConfiguration.__init__(self,'Plot') if not preferences: self.Add(XMLProperty('S',[[SParameterPlotsConfiguration() for _ in range(0)] for _ in range(0)],'array',arrayType=SParameterPlotsConfiguration())) else: self.Add(XMLPropertyDefaultBool('VariableLineWidth',False)) self.Add(XMLPropertyDefaultBool('ShowPassivityViolations',False)) self.Add(XMLPropertyDefaultBool('ShowCausalityViolations',False)) self.Add(XMLPropertyDefaultBool('ShowImpedance',False)) self.Add(XMLPropertyDefaultBool('ShowExcessInductance',False)) self.Add(XMLPropertyDefaultBool('ShowExcessCapacitance',False)) self.Add(XMLPropertyDefaultBool('LogScale',False)) self.Add(XMLPropertyDefaultBool('LinearVerticalScale',False))
def __init__(self): XMLConfiguration.__init__(self, 'Wire') self.Add( XMLProperty('Vertices', [VertexConfiguration() for _ in range(0)], 'array', arrayType=VertexConfiguration()))
def __init__(self): XMLProperty.__init__(self, 'Wires', [Wire() for _ in range(0)], 'array', arrayType=Wire())