예제 #1
0
 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()))
예제 #2
0
 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()))
예제 #4
0
 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))
예제 #5
0
 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)
예제 #6
0
 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())
예제 #7
0
 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()))
예제 #8
0
 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))
예제 #10
0
 def __init__(self):
     XMLConfiguration.__init__(self, 'Wire')
     self.Add(
         XMLProperty('Vertices', [VertexConfiguration() for _ in range(0)],
                     'array',
                     arrayType=VertexConfiguration()))
예제 #11
0
 def __init__(self):
     XMLProperty.__init__(self,
                          'Wires', [Wire() for _ in range(0)],
                          'array',
                          arrayType=Wire())