argiope/abq/pypostproc.py
def read_history_report(path, steps, x_name = None):
  """
  Reads an history output report.
  """
  data = pd.read_csv(path, delim_whitespace = True)
  if x_name != None:
    data[x_name] = data.X
    del data["X"]
    
  data["step"] = 0
  t = 0.
  for i in range(len(steps)):
    dt = steps[i].duration
    loc = data[data.t == t].index
    if len(loc) == 2:
      data.loc[loc[1]:, "step"] = i
    t += dt 
  return data
def read_history_report(path, steps, x_name = None):
  data = pd.read_csv(path, delim_whitespace = True)
  if x_name != None:
    data[x_name] = data.X
    del data["X"]
    
  data["step"] = 0
  t = 0.
  for i in range(len(steps)):
    dt = steps[i].duration
    loc = data[data.t == t].index
    if len(loc) == 2:
      data.loc[loc[1]:, "step"] = i
    t += dt 
  return data
def read_history_report ( path , steps , x_name = None ) : data = pd . read_csv ( path , delim_whitespace = True ) if x_name != None : data [ x_name ] = data . X del data [ "X" ] data [ "step" ] = 0 t = 0. for i in range ( len ( steps ) ) : dt = steps [ i ] . duration loc = data [ data . t == t ] . index if len ( loc ) == 2 : data . loc [ loc [ 1 ] : , "step" ] = i t += dt return data
Reads an history output report.
Reads an history output report .