Exemple #1
0
 def test(file_path):
     try:
         citifile = citi.read(file_path)
         del citifile
         return True
     except:
         return False
Exemple #2
0
 def test(file_path):
     try:
         citifile = citi.read(file_path)
         del citifile
         return True
     except:
         return False
Exemple #3
0
    def __init__(self, file_path):
        DataFile.__init__(self, file_path)
        self._citi = citi.read(self.file_path, True)
        self.rootItem = None

        # build hierarchical signal list
        self.circuit = Circuit("CITI", self)
        indep_name = "frequency"
        indep_type = signaltype.f
        indep_signal = Signal(indep_name, indep_name, None, indep_type)
        indep_signal._set_parent(self.circuit)
        for i in range(self._citi.ports):
            for j in range(self._citi.ports):
                signal_name = "S(%d,%d)" % (i + 1, j + 1)
                signal_type = signaltype.Spar
                signal = Signal(signal_name, signal_name, indep_signal, signal_type)
                signal._data_source_info['port1'] = i + 1
                signal._data_source_info['port2'] = j + 1
                self.circuit.add_signal(signal)
Exemple #4
0
    def __init__(self, file_path):
        DataFile.__init__(self, file_path)
        self._citi = citi.read(self.file_path, True)
        self.rootItem = None

        # build hierarchical signal list
        self.circuit = Circuit("CITI", self)
        indep_name = "frequency"
        indep_type = signaltype.f
        indep_signal = Signal(indep_name, indep_name, None, indep_type)
        indep_signal._set_parent(self.circuit)
        for i in range(self._citi.ports):
            for j in range(self._citi.ports):
                signal_name = "S(%d,%d)" % (i + 1, j + 1)
                signal_type = signaltype.Spar
                signal = Signal(signal_name, signal_name, indep_signal,
                                signal_type)
                signal._data_source_info['port1'] = i + 1
                signal._data_source_info['port2'] = j + 1
                self.circuit.add_signal(signal)