dvid.fetch.get_sizes

dvid.fetch.get_sizes(ids, chunk_size=1000.0, progress=True, server=None, node=None)[source]

Get sizes (in supervoxels) for given body IDs.

Parameters
  • ids (iterable) – [12345, 455677, …] IDs. Must be integers!

  • chunk_size (int, optional) – Splits query into chunks of a given size to reduce strain on server.

  • progress (bool) – If True, show progress bar.

  • server (str, optional) – If not provided, will try reading from global.

  • node (str, optional) – If not provided, will try reading from global.

Returns

sizes – For IDs that do not exist the size will be 0.

Return type

np.ndarray