slac-lcls / smalldata_tools

code to facilitate production of LCLS small data files and the analysis thereof
12 stars 12 forks source link

Droplet2 func #69

Closed myz19 closed 3 years ago

myz19 commented 3 years ago

I added a new DetObjectFunc to do droplet analysis. The arguments you could put into this function include return_img (bool), name, threshold, mask, aduspphot, and offset. This class has a function called process that processes the function for each image. It uses the functions convert_img, loopdrops, and getProb_img to return a dictionary including the probability and either the photon list (as ragged so it is split into two arrays x's and y's) or the image with how many photons there is at each coordinate in the image.

vespos commented 3 years ago

Merging the new droplet2Func in master after resolving a trivial conflict.