def __init__(self, fid): align.check(fid); self.hdr = device_header.read(fid); self.impedance = fread(fid, 1, 'f', 'f', 1); fid.seek(4, os.SEEK_CUR); self.Xfm = fread(fid, 4*4, 'd', 'd', 1); self.reserved = ''.join(list(fread(fid, 32, 'c', 'c', 1 )));
def __init__(self, fid): align.check(fid); self.hdr = device_header.read(fid); self.inductance = fread(fid, 1, 'f', 'f', 1); fid.seek(4, os.SEEK_CUR); self.Xfm = fread(fid, 4*4, 'd', 'd', 1); self.xform_flag = fread(fid, 1, 'H', 'H', 1); self.total_loops = fread(fid, 1, 'H', 'H', 1); self.reserved = ''.join(list(fread(fid, 32, 'c', 'c', 1))); fid.seek(4, os.SEEK_CUR); self.loop_data = [loop_data.read(fid) for i in range(0, self.total_loops[0])] #read loop data
def __init__(self, fid): align.check(fid); self.hdr = device_header.read(fid); self.reserved = ''.join(list(fread(fid, 32, 'c', 'c', 1 )));
def __init__(self, fid): align.check(fid); self.hdr = device_header.read(fid); self.user_space_size = fread(fid, 1, 'I', 'I', 1); self.reserved = ''.join(list(fread(fid, 32, 'c', 'c', 1 ))); fid.seek(4, os.SEEK_CUR);