pymaid.update_radii

pymaid.update_radii(radii, chunk_size=1000, remote_instance=None)[source]

Change radii [nm] of given nodes.

Parameters
  • radii (dict, CatmaidNeuron/List) – Dictionary mapping node IDs to new radii or a CatmaidNeuron.

  • chunk_size (int, optional) – Update radii in chunks of this size. The maximal chunk size depends on your server’s configuration.

  • remote_instance (CatmaidInstance, optional) – If not passed directly, will try using global.

Returns

Server response with:

{
 'success': True/False,
 'update_nodes': {
            node_id: {'old': old_radius,
                      'new': new_radius
                      'edition_time': new_edition_time,
                      'skeleton_id': skeleton_id,
                     },
                 }
}

Return type

dict

Examples

>>> radii = {41500568: 50, 41500567: 100, 41500564: 200}
>>> pymaid.update_radii(radii)