Skip to content

Commit

Permalink
Merge pull request #82 from ePSIC-DLS/TomSlater-patch-2
Browse files Browse the repository at this point in the history
Fix bug in manual segmentation
  • Loading branch information
TomSlater authored May 15, 2024
2 parents 33b1c24 + 5ae8bc0 commit 1c54bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion particlespy/particle_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def particle_analysis(acquisition,parameters,particles=None,mask=np.zeros((1))):
image = acquisition

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

0 comments on commit 1c54bee

Please sign in to comment.