Exemple #1
0
def read_frame(file_unit,frame,io_vars=None,io_pos=None):

    temp_frame=cl_frame()
    io_pos=io_vars[2]+frame*io_vars[3]
    io_pos,temp_frame.step,temp_frame.time,temp_frame.prec,temp_frame.cell,temp_frame.coors,io_err,io_end=libbin.read(file_unit,io_vars[0],io_pos)
    temp_frame.cell2box()
    temp_frame.wrap()
    return temp_frame,io_pos,io_err,io_end
Exemple #2
0
def read_next(file_unit,io_vars=None,io_pos=None):

    temp_frame=cl_frame()
    io_pos,temp_frame.step,temp_frame.time,temp_frame.precision,temp_frame.cell,temp_frame.coors,io_err,io_end=libbin.read(file_unit,io_vars[0],io_pos)
    temp_frame.cell2box()
    temp_frame.wrap()
    return temp_frame,io_pos,io_err,io_end  # frame,io_pos,io_err,io_end