class_docstr: Class for stateful representation of collections of streamlines
  Object designed to be identical no matter the file format
  (trk, tck, vtk, fib, dpy). Facilitate transformation between space and
  data manipulation for each streamline / point.
class_docstr_tok: ["Class","for","stateful","representation","of","collections","of","streamlines","Object","designed","to","be","identical","no","matter","the","file","format","(","trk",",","tck",",","vtk",",","fib",",","dpy",")",".","Facilitate","transformation","between","space","and","data","manipulation","for","each","streamline","\/","point","."]
docstr: Modify streamlines. Creating a new object would be less risky.
  
  Parameters
  ----------
  streamlines : list or ArraySequence (list and deepcopy recommended)
      Streamlines of the tractogram
docstr_tok: ["Modify","streamlines",".","Creating","a","new","object","would","be","less","risky",".","Parameters","--","--","--","--","--","streamlines",":","list","or","ArraySequence","(","list","and","deepcopy","recommended",")","Streamlines","of","the","tractogram"]
code: def streamlines(self, streamlines):
      """Modify streamlines. Creating a new object would be less risky.
  
      Parameters
      ----------
      streamlines : list or ArraySequence (list and deepcopy recommended)
          Streamlines of the tractogram
      """
      if isinstance(streamlines, Streamlines):
          streamlines = streamlines.copy()
      self._tractogram._streamlines = Streamlines(streamlines)
      self.data_per_point = self.data_per_point
      self.data_per_streamline = self.data_per_streamline
      logger.warning("Streamlines has been modified.")
  
imports: from bisect import bisect
  from collections import OrderedDict
  from copy import deepcopy
  import enum
  from itertools import product
  import logging
  from nibabel.affines import apply_affine
  from nibabel.streamlines.tractogram import Tractogram, PerArraySequenceDict, PerArrayDict
  import numpy
  from dipy.io.dpy import Streamlines
  from dipy.io.utils import get_reference_info, is_reference_info_valid, is_header_compatible
label_desc: Use image node_id 22 for calling the StatefulTractogram obj's underlying member method code with example usage: obj.streamlines(streamlines) without return types