Hi Nick,
Bug was ...
Code:
dataout = dataout[:first_pdb_record+i*8]+\
struct.pack('>L',ofs)+struct.pack('L',it)+\
dataout[first_pdb_record+i*8+8:]
needs a '>L', not an plain 'L' to keep things properly big endian
Code:
dataout = dataout[:first_pdb_record+i*8]+\
struct.pack('>L',ofs)+struct.pack('>L',it)+\
dataout[first_pdb_record+i*8+8:]
once I made those changes then my earlier error message goes away.
Take care,
KevinH