code: def truncate(self, index, chain=-1):
          
          chain = range(self.chains)[chain]
          for name in self.trace_names[chain]:
              self._traces[name].truncate(index, chain)
docs: Tell the traces to truncate themselves at the given index.