aliby.baby_client.format_segmentation

format_segmentation(segmentation, tp)[source]

Format a single timepoint into a dictionary.

Parameters
segmentation: list

A list of results, each result is the output of the crawler, which is JSON-encoded

tp: int

the time point considered

Returns
A dictionary containing the formatted results of BABY