Пример #1
0
def savePosition(poppy, form, savedPositions):
    name = form["saveposinput"].value
    position = {"name": name}
    for m in poppy.motors:
        position[m.name] = m.present_position
    savedPositions.append(position)
    move = Move(0.)
    move._positions = savedPositions
    with open(saved_positions_file, 'w') as f:
        move.save(f)
def savePosition(poppy, form, savedPositions):
    name = form["saveposinput"].value
    position = {"name":name}
    for m in poppy.motors:
        position[m.name] = m.present_position
    savedPositions.append(position)
    move = Move(0.)
    move._positions = savedPositions
    with open(saved_positions_file, 'w') as f:
        move.save(f)
def savePositionsInFile(positions):
    move = Move(0.)
    move._positions = positions
    with open(saved_positions_file, 'w') as f:
        move.save(f)
Пример #4
0
def savePositionsInFile(positions):
    move = Move(0.)
    move._positions = positions
    with open(saved_positions_file, 'w') as f:
        move.save(f)