def fromTrajectory1d( traj ):
    """Converts Core.Trajectory1d to a list of 2-tuple"""
    if traj is None: return None
    return [ (traj.getKnotPosition(i), traj.getKnotValue(i)) for i in range(traj.getKnotCount()) ]