parameters: (self,trajs,strict=True)
docstring: Stacks the degrees of freedom of multiple trajectories together.
          The result is contained in self.
  
          All evaluations are assumed to take place with the 'halt' endBehavior.
  
          Args:
              trajs (list or tuple of HermiteTrajectory): the trajectories to 
                  stack
              strict (bool, optional): ignored. Will always warn for invalid
                  classes.
docstring_summary: Stacks the degrees of freedom of multiple trajectories together.
          The result is contained in self.
docstring_tokens: Stacks the degrees of freedom of multiple trajectories together . The result is contained in self .
function: def stackDofs(self,trajs,strict=True) -> None:
          """Stacks the degrees of freedom of multiple trajectories together.
          The result is contained in self.
  
          All evaluations are assumed to take place with the 'halt' endBehavior.
  
          Args:
              trajs (list or tuple of HermiteTrajectory): the trajectories to 
                  stack
              strict (bool, optional): ignored. Will always warn for invalid
                  classes.
          """
          if not isinstance(trajs,(list,tuple)):
              raise ValueError("HermiteTrajectory.stackDofs takes in a list of trajectories as input")
          for traj in trajs:
              if not isinstance(traj,HermiteTrajectory):
                  raise ValueError("Can't stack non-HermiteTrajectory objects into a HermiteTrajectory")
          alltimes = set()
          for traj in trajs:
              for t in traj.times:
                  alltimes.add(t)
          self.times = sorted(alltimes)
          stacktrajs = [traj.remesh(self.times) for traj in trajs]
          for traj in stacktrajs:
              assert len(traj.milestones) == len(self.times)
          self.milestones = []
          for i,t in enumerate(self.times):
              q = []
              v = []
              for traj in stacktrajs:
                  n = len(traj.milestones[i])//2
                  q += list(traj.milestones[i][:n])
                  v += list(traj.milestones[i][n:])
              self.milestones.append(q + v)
function_tokens: def stackDofs ( self , trajs , strict = True ) -> None : if not isinstance ( trajs , ( list , tuple ) ) : raise ValueError ( "HermiteTrajectory.stackDofs takes in a list of trajectories as input" ) for traj in trajs : if not isinstance ( traj , HermiteTrajectory ) : raise ValueError ( "Can't stack non-HermiteTrajectory objects into a HermiteTrajectory" ) alltimes = set ( ) for traj in trajs : for t in traj . times : alltimes . add ( t ) self . times = sorted ( alltimes ) stacktrajs = [ traj . remesh ( self . times ) for traj in trajs ] for traj in stacktrajs : assert len ( traj . milestones ) == len ( self . times ) self . milestones = [ ] for i , t in enumerate ( self . times ) : q = [ ] v = [ ] for traj in stacktrajs : n = len ( traj . milestones [ i ] ) // 2 q += list ( traj . milestones [ i ] [ : n ] ) v += list ( traj . milestones [ i ] [ n : ] ) self . milestones . append ( q + v )