pymaid.move_nodes

pymaid.move_nodes(new_locs, node_type, no_prompt=False, remote_instance=None)[source]

Update location of given nodes or connectors.

Danger

Use this with EXTREME caution as this is irreversible!

Parameters:
  • list (new_locs dict |) –

    Either dictionary or list mapping node IDs to new x/y/z locations:

    {node_id: [x, y , z], ...}
    [[node_id, x, y, z], ... ]
    

    Must not be a mix of connectors and nodes!

  • node_type ('NODE' | 'CONNECTOR') – Set which type of nodes you want to move as they need to be parsed differently!

  • no_prompt (bool, optional) – By default, you will be prompted to confirm before moving the node(s). Set this to True to skip that step.

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

Return type:

server response

See also

delete_nodes()

Use to delete nodes.