Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure number of vacant synaptic elements is always >= 0 #818
Minor check to ensure that the number of vacant synaptic elements is
The decay method is only called after connectivity updates have been
(Discussed this with @sdiazpier over slack and we thought it'd be better to have the check in now than diagnose unexpected behaviours later.)
Minor check to ensure that the number of vacant synaptic elements is always >= 0. When synaptic elements are to be deleted, z_ < z_connected_, and in this scenario, this method may return a negative - which when passed to the `decay_synaptic_elements` method unexpectedly adds to the z_ value instead of having no effect (there are no vacant elements to decay). The decay method is only called after connectivity updates have been made in the current source, so this issue doesn not arise. However, as we're thinking of moving towards decoupling the structural plasticity updates in the future, this general check is worth adding.