def __init__(self): ProjectFileBase.__init__(self, 'si') self.SubDir(DrawingConfiguration()) self.SubDir(CalculationProperties()) self.SubDir(PostProcessingConfiguration()) from SignalIntegrity.App.Wire import WireList self['Drawing.Schematic'].dict['Wires'] = WireList()
def __init__(self): ProjectFileBase.__init__(self) self.Add(XMLPropertyDefaultString('Version', None)) self.SubDir(ProjectFiles()) self.SubDir(Appearance()) self.SubDir(Cache()) self.SubDir(OnlineHelp()) self.SubDir(Calculation())
def __init__(self): ProjectFileBase.__init__(self) self.Add(XMLPropertyDefaultString('Version', None)) self.SubDir(ProjectFiles()) self.SubDir(Appearance()) self.SubDir(Cache()) self.SubDir(OnlineHelp()) self.SubDir(Calculation()) self.SubDir(SParameterProperties(preferences=True)) self.SubDir(Features())
def __init__(self): ProjectFileBase.__init__(self,'si') self.SubDir(DrawingConfiguration()) self.SubDir(CalculationProperties()) self.SubDir(PostProcessingConfiguration()) # for backwards compatibility with projects with global eye diagram configurations, allow for these projects to be # read properly - the eye diagram configuration will then be assigned to each device, and when the project file is # saved, the global eye diagram configuration will be removed import SignalIntegrity.App.Preferences self.SubDir(copy.deepcopy(SignalIntegrity.App.Preferences['Devices']['EyeDiagram']),makeOnRead=True) # end of backward compatibility to be removed some day from SignalIntegrity.App.Wire import WireList self['Drawing.Schematic'].dict['Wires']=WireList()
def Write(self, app, filename=None): self['Drawing.Schematic.Devices'] = [ DeviceConfiguration() for _ in range(len(app.Drawing.schematic.deviceList)) ] for d in range(len(self['Drawing.Schematic.Devices'])): deviceProject = self['Drawing.Schematic.Devices'][d] device = app.Drawing.schematic.deviceList[d] deviceProject['ClassName'] = device.__class__.__name__ partPictureProject = deviceProject['PartPicture'] partPicture = device.partPicture partPictureProject['Index'] = partPicture.partPictureSelected partPictureProject['ClassName'] = partPicture.partPictureClassList[ partPicture.partPictureSelected] partPictureProject['Origin'] = partPicture.current.origin partPictureProject['Orientation'] = partPicture.current.orientation partPictureProject[ 'MirroredVertically'] = partPicture.current.mirroredVertically partPictureProject[ 'MirroredHorizontally'] = partPicture.current.mirroredHorizontally deviceProject['PartProperties'] = device.propertiesList deviceNetListProject = deviceProject['DeviceNetList'] deviceNetList = device.netlist for n in deviceNetList.dict: deviceNetListProject[n] = deviceNetList[n] if not filename is None: ProjectFileBase.Write(self, filename) return self
def __init__(self): ProjectFileBase.__init__(self, 'sp') self.SubDir(SParameterProperties())
def Read(self, filename=None): if not filename is None: ProjectFileBase.Read(self, filename) return self
def __init__(self): ProjectFileBase.__init__(self,'sp') self.SubDir(SParameterProperties(preferences=False))