Beispiel #1
0
def raw_to_converge(steps, energy):
    if len(steps) > 0:
        if not sequence(steps[0][0]):
            steps = [[step]
                     for step in steps]  # needed when steps = [1,2,3,...]
        steps = [list(zip(*step))
                 for step in steps]  # also can be used to revert 'steps'
    return steps, energy
Beispiel #2
0
def raw_to_converge(steps, energy):
  if len(steps) > 0:
    if not sequence(steps[0][0]):
      steps = [[step] for step in steps]  # needed when steps = [1,2,3,...]
    steps = [zip(*step) for step in steps] # also can be used to revert 'steps'
  return steps, energy