示例#1
0
 def _read_tempp1(self, data: bytes, n: int) -> int:
     ntotal = 24  # 6*4
     nentries = (len(data) - n) // ntotal
     struc = Struct(self._endian + b'2i 4f')
     for unused_i in range(nentries):
         edata = data[n:n + ntotal]
         out = struc.unpack(edata)
         if self.is_debug_file:
             self.binary_debug.write('  TEMPP1=%s\n' % str(out))
         #sid, eid, t, tprime, ts1, ts2 = data
         load = TEMPP1.add_op2_data(out)
         self._add_load_object(load)
         n += ntotal
     self.card_count['TEMPP1'] = nentries
     return n
示例#2
0
 def _read_tempp1(self, data, n):
     ntotal = 24  # 6*4
     nentries = (len(data) - n) // ntotal
     struc = Struct(b(self._endian + '2i 4f'))
     for i in range(nentries):
         edata = data[n:n + ntotal]
         out = struc.unpack(edata)
         if self.is_debug_file:
             self.binary_debug.write('  TEMPP1=%s\n' % str(out))
         #(sid, nid, scale_factor) = out
         load = TEMPP1.add_op2_data(out)
         self._add_load_object(load)
         n += ntotal
     self.card_count['TEMPP1'] = nentries
     return n
示例#3
0
 def _read_tempp1(self, data, n):
     ntotal =  24  # 6*4
     nentries = (len(data) - n) // ntotal
     struc = Struct(b(self._endian + '2i 4f'))
     for i in range(nentries):
         edata = data[n:n + ntotal]
         out = struc.unpack(edata)
         if self.is_debug_file:
             self.binary_debug.write('  TEMPP1=%s\n' % str(out))
         #(sid, nid, scale_factor) = out
         load = TEMPP1.add_op2_data(out)
         self._add_load_object(load)
         n += ntotal
     self.card_count['TEMPP1'] = nentries
     return n