parameters: (
          self, key: str, start: Optional[int] = None, stop: Optional[int] = None
      )
docstring: read an array for the specified node (off of group
docstring_summary: read an array for the specified node (off of group
docstring_tokens: read an array for the specified node ( off of group
function: def read_array(
          self, key: str, start: Optional[int] = None, stop: Optional[int] = None
      ):
          """ read an array for the specified node (off of group """
          import tables
  
          node = getattr(self.group, key)
          attrs = node._v_attrs
  
          transposed = getattr(attrs, "transposed", False)
  
          if isinstance(node, tables.VLArray):
              ret = node[0][start:stop]
          else:
              dtype = getattr(attrs, "value_type", None)
              shape = getattr(attrs, "shape", None)
  
              if shape is not None:
                  # length 0 axis
                  ret = np.empty(shape, dtype=dtype)
              else:
                  ret = node[start:stop]
  
              if dtype == "datetime64":
  
                  # reconstruct a timezone if indicated
                  tz = getattr(attrs, "tz", None)
                  ret = _set_tz(ret, tz, coerce=True)
  
              elif dtype == "timedelta64":
                  ret = np.asarray(ret, dtype="m8[ns]")
  
          if transposed:
              return ret.T
          else:
              return ret
function_tokens: def read_array ( self , key : str , start : Optional [ int ] = None , stop : Optional [ int ] = None ) : import tables node = getattr ( self . group , key ) attrs = node . _v_attrs transposed = getattr ( attrs , "transposed" , False ) if isinstance ( node , tables . VLArray ) : ret = node [ 0 ] [ start : stop ] else : dtype = getattr ( attrs , "value_type" , None ) shape = getattr ( attrs , "shape" , None ) if shape is not None : # length 0 axis ret = np . empty ( shape , dtype = dtype ) else : ret = node [ start : stop ] if dtype == "datetime64" : # reconstruct a timezone if indicated tz = getattr ( attrs , "tz" , None ) ret = _set_tz ( ret , tz , coerce = True ) elif dtype == "timedelta64" : ret = np . asarray ( ret , dtype = "m8[ns]" ) if transposed : return ret . T else : return ret