def readSUPORT(self, data): """SUPORT(5601,56, 14) - Record 59""" #self.skippedCardsFile.write('skipping SUPORT in GEOM4\n') n = 0 nEntries = len(data) // 8 # 2*4 for i in range(nEntries): self.add_suport(SUPORT(None, list(unpack( 'ii', data[n:n + 8])))) # extracts [sid, c] n += 8 data = data[n:]
def _readSUPORT(self, data, n): """SUPORT(5601,56, 14) - Record 59""" #self.log.debug('skipping SUPORT in GEOM4\n') n = 0 nEntries = len(data) // 8 # 2*4 s = Struct(b'2i') for i in range(nEntries): self.add_suport(SUPORT(None, list(s.unpack( data[n:n + 8])))) # extracts [sid, c] n += 8 return n
def _read_suport(self, data, n): """SUPORT(5601,56, 14) - Record 59""" #self.log.debug('skipping SUPORT in GEOM4\n') n = 0 nentries = len(data) // 8 # 2*4 s = Struct(b(self._endian + '2i')) for i in range(nentries): data_in = list(s.unpack(data[n:n + 8])) suport = SUPORT.add_op2_data(data_in) self.add_suport(suport) # extracts [sid, c] n += 8 return n
def _read_suport(self, data, n): """SUPORT(5601,56, 14) - Record 59""" nentries = (len(data) - n) // 8 # 2*4 s = Struct(b(self._endian + '2i')) for i in range(nentries): out = list(s.unpack(data[n:n + 8])) if self.is_debug_file: self.binary_debug.write(' SUPORT=%s\n' % str(out)) #self.log.info(out) suport = SUPORT.add_op2_data(out) self._add_suport_object(suport) # extracts [sid, c] n += 8 return n
def readSUPORT(self, data): """SUPORT(5601,56, 14) - Record 59""" #self.skippedCardsFile.write('skipping SUPORT in GEOM4\n') n = 0 nEntries = len(data) // 8 # 2*4 for i in xrange(nEntries): eData = data[n:n + 8] (sid, c) = unpack(b'ii', eData) suport = SUPORT(None, [sid, c]) self.addSuport(suport) n += 8 ### data = data[n:]