class_docstr: Holds information about a molecules.
  
  Resorts order of atoms internally to be in order of increasing degree. Note
  that only heavy atoms (hydrogens excluded) are considered here.
class_docstr_tok: ["Holds","information","about","a","molecules",".","Resorts","order","of","atoms","internally","to","be","in","order","of","increasing","degree",".","Note","that","only","heavy","atoms","(","hydrogens","excluded",")","are","considered","here","."]
docstr: Returns degree-slice tensor.
  
  The deg_slice tensor allows indexing into a flattened version of the
  molecule's atoms. Assume atoms are sorted in order of degree. Then
  deg_slice[deg][0] is the starting position for atoms of degree deg in
  flattened list, and deg_slice[deg][1] is the number of atoms with degree deg.
  
  Note deg_slice has shape (max_deg+1-min_deg, 2).
  
  Returns
  -------
  deg_slice: np.ndarray
      Shape (max_deg+1-min_deg, 2)
docstr_tok: ["Returns","degree-slice","tensor",".","The","deg_slice","tensor","allows","indexing","into","a","flattened","version","of","the","molecule","'s","atoms",".","Assume","atoms","are","sorted","in","order","of","degree",".","Then","deg_slice","[","deg","]","[","0","]","is","the","starting","position","for","atoms","of","degree","deg","in","flattened","list",",","and","deg_slice","[","deg","]","[","1","]","is","the","number","of","atoms","with","degree","deg",".","Note","deg_slice","has","shape","(","max_deg+1-min_deg",",","2",")",".","Returns","--","--","--","-","deg_slice",":","np.ndarray","Shape","(","max_deg+1-min_deg",",","2",")"]
code: def get_deg_slice(self):
      """Returns degree-slice tensor.
  
      The deg_slice tensor allows indexing into a flattened version of the
      molecule's atoms. Assume atoms are sorted in order of degree. Then
      deg_slice[deg][0] is the starting position for atoms of degree deg in
      flattened list, and deg_slice[deg][1] is the number of atoms with degree deg.
  
      Note deg_slice has shape (max_deg+1-min_deg, 2).
  
      Returns
      -------
      deg_slice: np.ndarray
          Shape (max_deg+1-min_deg, 2)
      """
      return self.deg_slice
  
imports: import csv
  import random
  import numpy
label_desc: Use image node_id 9 for calling the ConvMol obj's underlying member method code with example usage: obj.get_deg_slice() and returns: self