(self, trajectory_class=trajectory.Trajectory,
               proto_modifier=())
Initializes this loader.

    Args:
      trajectory_class: A Python class that wraps a loaded trajectory proto.
      proto_modifier: (optional) A callable, or an iterable of callables, that
        modify each trajectory proto in-place after it has been deserialized
        from the SSTable.

    Raises:
      ValueError: If `proto_modifier` is specified, but contains a
        non-callable entry.
Initializes this loader.
Initializes this loader .
def __init__(self, trajectory_class=trajectory.Trajectory,
               proto_modifier=()):
    """Initializes this loader.

    Args:
      trajectory_class: A Python class that wraps a loaded trajectory proto.
      proto_modifier: (optional) A callable, or an iterable of callables, that
        modify each trajectory proto in-place after it has been deserialized
        from the SSTable.

    Raises:
      ValueError: If `proto_modifier` is specified, but contains a
        non-callable entry.
    """
    self._trajectory_class = trajectory_class
    if not isinstance(proto_modifier, collections.abc.Iterable):
      if proto_modifier is None:  # backwards compatibility
        proto_modifier = ()
      else:
        proto_modifier = (proto_modifier,)
    for modifier in proto_modifier:
      if not callable(modifier):
        raise ValueError('{} is not callable'.format(modifier))
    self._proto_modifiers = proto_modifier
def __init__ ( self , trajectory_class = trajectory . Trajectory , proto_modifier = ( ) ) : self . _trajectory_class = trajectory_class if not isinstance ( proto_modifier , collections . abc . Iterable ) : if proto_modifier is None : # backwards compatibility proto_modifier = ( ) else : proto_modifier = ( proto_modifier , ) for modifier in proto_modifier : if not callable ( modifier ) : raise ValueError ( '{} is not callable' . format ( modifier ) ) self . _proto_modifiers = proto_modifier