Skip to content

Commit 1c54bee

Browse files
authored
Merge pull request ePSIC-DLS#82 from ePSIC-DLS/TomSlater-patch-2
Fix bug in manual segmentation
2 parents 33b1c24 + 5ae8bc0 commit 1c54bee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

particlespy/particle_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def particle_analysis(acquisition,parameters,particles=None,mask=np.zeros((1))):
5555
image = acquisition
5656

5757
if str(mask) == 'UI':
58-
labeled = label(np.load(os.path.dirname(inspect.getfile(process))+'/parameters/manual_mask.npy')[:,:,0])
58+
labeled = label(np.load(os.path.dirname(inspect.getfile(process))+'/parameters/manual_mask.npy')[:,:,0]>0)
5959
print(len(labeled))
6060
#plt.imshow(labeled)
6161
#morphology.remove_small_objects(labeled,30,in_place=True)

0 commit comments

Comments
 (0)