eta.util.buffer.enqueue_ordered

enqueue_ordered(items, buffer, inc_val=0.0001)[source]

Enqueue a list of items, preserving original order unless an importance value is explicitly specified.

Parameters:
  • items (list) – A list where each item is either an object or (importance, object) tuple. For each item where an importance is not specified, a default importance value is generated using an increment so as to preserve the original order.

  • buffer (list[tuple[float, object]]) –

  • inc_val (float, default=0.0001) – The increment to use for generated importance values.