pymaid.differential_upload¶
- pymaid.differential_upload(x, skeleton_id=None, no_prompt=False, remote_instance=None)[source]¶
Upload only changes made to a neuron.
In brief, this function takes the input neuron
x
, compares with its live version on the server and makes incremental changes:Remove nodes not present in
x
from live neuronAdd nodes present in
x
but not in live neuronMove nodes present in
x
and live neuron that have changed positions
Danger
Use this with EXTREME caution as this is irreversible!
- Parameters:
x (CatmaidNeuron/List) – Neurons to upload.
skeleton_id (int, optional) – Use this to set the target live neuron. If not provided will will use
x.skeleton_id
.no_prompt (bool, optional) – If True, will not prompt before uploading changes!
remote_instance (CatmaidInstance, optional) – CatmaidInstance to upload to. If not passed directly, will try using global.
- Returns:
None – If everything went well.
dict – On error, returns dict with server response.