funkelab / motile

Multi-Object Tracker using Integer Linear Equations
https://funkelab.github.io/motile/
MIT License
27 stars 5 forks source link

Produce a warning message in case the `frame_attribute` specified, is unavailable on the nodes #92

Closed lmanan closed 7 months ago

lmanan commented 7 months ago

While initializing a TrackGraph object,

from motile import TrackGraph
track_graph = TrackGraph(nx_graph = candidate_graph)

if one forgets to explicitly specify the frame_attribute, causes the is_hyperedge_nx_node method here to evaluate to True, producing an object with no edges.

Maybe a warning message can be printed whenever the self.frame_attribute is not found on the nodes, in order to trouble shoot and distinguish the hyper-edge scenario from just specifying the wrong frame_attribute while initializing the object.

funkey commented 7 months ago

Duplicate of #91