Skip to content

Commit

Permalink
NeuronMask: rename parameter "reset_neurons" -> "reset"
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Feb 6, 2025
1 parent 0674b08 commit 29a27bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions navis/core/masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class NeuronMask:
Whether to copy the neuron data (e.g. node table for skeletons)
when masking. Set this to `True` if you know your code will modify
the masked data and you want to prevent changes to the original.
reset_neurons : bool
reset : bool
If True, reset the neurons to their original state after the
context manager exits. If False, will try to incorporate any
changes made to the masked neurons. Note that this may not
Expand Down Expand Up @@ -81,15 +81,15 @@ class NeuronMask:
"""

def __init__(self, x, mask, reset_neurons=True, copy_data=False, validate_mask=True):
def __init__(self, x, mask, reset=True, copy_data=False, validate_mask=True):
self.neurons = x

if validate_mask:
self.mask = mask
else:
self._mask = mask

self.reset = reset_neurons
self.reset = reset
self.copy = copy_data

@property
Expand Down

0 comments on commit 29a27bd

Please sign in to comment.