MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / __init__

Method __init__

numpy_ml/utils/data_structures.py:15–20  ·  view source on GitHub ↗

A generic node object for holding entries in :class:`PriorityQueue`

(self, key, val, priority, entry_id, **kwargs)

Source from the content-addressed store, hash-verified

13
14class PQNode(object):
15 def __init__(self, key, val, priority, entry_id, **kwargs):
16 """A generic node object for holding entries in :class:`PriorityQueue`"""
17 self.key = key
18 self.val = val
19 self.entry_id = entry_id
20 self.priority = priority
21
22 def __repr__(self):
23 fstr = "PQNode(key={}, val={}, priority={}, entry_id={})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected