nanshe/advanced_image_processing.py: Found a bug where regions might be accepted even if they failed to match some of the properties.
nanshe/advanced_image_processing.py: Switched from using new_wavelet_image_denoised_segmentation to using watershed_local_maxima.label_image for generating neurons["mask"].
nanshe/nanshe_learner.py: Made sure other neuron properties were copied over in the block case.
nanshe/nanshe_learner.py: Fixed the block case to make sure it wouldn't include neurons that were not mostly in the non-windowed block region.
tests/test_nanshe_learner.py: Updated neuron centers due to a slight change from the extract_f0 calculation.
tests/test_advanced_image_processing.py: Added a test for merging two neurons with advanced_image_processing.postprocess_data using 2D data.
tests/test_advanced_image_processing.py: Added a test for merging two neurons with advanced_image_processing.postprocess_data using 3D data.
nanshe/advanced_image_processing.py: Added a new merge_neuron_sets function that merges the same set repeatedly until there is no further need.
nanshe/advanced_image_processing.py: Deleted merge_neuron_sets_old.
nanshe/advanced_image_processing.py: Changed condition on while loop in merge_neuron_sets to skip the case of a single neuron.
nanshe/advanced_image_processing.py: Removed upper triangle constraint from new_neuron_set_masks_overlaid as all values are relevant.
nanshe/advanced_image_processing.py: Made sure diagonal was set to zero for new_neuron_set_masks_overlaid in merge_neuron_sets.
nanshe/expanded_numpy.py: Added the pair_dot_product function for when a dot product is needed between a matrix and itself.
nanshe/expanded_numpy.py: Added the function pair_dot_product_partially_normalized for calculating dot_product_partially_normalized between vectors from the same set.
nanshe/expanded_numpy.py: Added the function pair_dot_product_normalized for calculating dot_product_normalized between vectors in the same set.
nanshe/advanced_image_processing.py: Optimized distance calculations in merge_neuron_sets.