@@ -1421,7 +1421,7 @@ def remove_small_large_neurons(self, min_size_neuro, max_size_neuro,
1421
1421
indeces of components with size within the acceptable range
1422
1422
'''
1423
1423
if self .A_thr is None :
1424
- raise Exception ('You need to compute thresolded components before calling remove_duplicates: use the threshold_components method' )
1424
+ raise Exception ('You need to compute thresholded components before calling remove_duplicates: use the threshold_components method' )
1425
1425
1426
1426
A_gt_thr_bin = self .A_thr .toarray () > 0
1427
1427
size_neurons_gt = A_gt_thr_bin .sum (0 )
@@ -1451,7 +1451,7 @@ def remove_duplicates(self, predictions=None, r_values=None, dist_thr=0.1,
1451
1451
plot_duplicates
1452
1452
'''
1453
1453
if self .A_thr is None :
1454
- raise Exception ('You need to compute thresolded components before calling remove_duplicates: use the threshold_components method' )
1454
+ raise Exception ('You need to compute thresholded components before calling remove_duplicates: use the threshold_components method' )
1455
1455
1456
1456
A_gt_thr_bin = (self .A_thr .toarray () > 0 ).reshape ([self .dims [0 ], self .dims [1 ], - 1 ], order = 'F' ).transpose ([2 , 0 , 1 ]) * 1.
1457
1457
@@ -1492,7 +1492,7 @@ def masks_2_neurofinder(self, dataset_name):
1492
1492
"""
1493
1493
if self .A_thr is None :
1494
1494
raise Exception (
1495
- 'You need to compute thresolded components before calling this method: use the threshold_components method' )
1495
+ 'You need to compute thresholded components before calling this method: use the threshold_components method' )
1496
1496
bin_masks = self .A_thr .reshape ([self .dims [0 ], self .dims [1 ], - 1 ], order = 'F' ).transpose ([2 , 0 , 1 ])
1497
1497
return nf_masks_to_neurof_dict (bin_masks , dataset_name )
1498
1498
@@ -1711,10 +1711,10 @@ def compare_components(estimate_gt, estimate_cmp, Cn=None, thresh_cost=.8, min_
1711
1711
labels = ['GT' , 'CMP' ], plot_results = False ):
1712
1712
if estimate_gt .A_thr is None :
1713
1713
raise Exception (
1714
- 'You need to compute thresolded components for first argument before calling remove_duplicates: use the threshold_components method' )
1714
+ 'You need to compute thresholded components for first argument before calling remove_duplicates: use the threshold_components method' )
1715
1715
if estimate_cmp .A_thr is None :
1716
1716
raise Exception (
1717
- 'You need to compute thresolded components for second argument before calling remove_duplicates: use the threshold_components method' )
1717
+ 'You need to compute thresholded components for second argument before calling remove_duplicates: use the threshold_components method' )
1718
1718
1719
1719
if plot_results :
1720
1720
plt .figure (figsize = (20 , 10 ))
0 commit comments