Create your own target finder
Added by Anchi Cheng over 7 years ago
This is a question being asked through e-mail more than once, so I post the answer here.
In myami/leginon, there is a module called testtargetfinder.py. It contains an example class with all the component except how to find the target.
To make your own target finding algorithm appear in this node, we recommend that you copy this code, and then you can modify the function
testFindTargets where it says:
# Put your function call here: # such as # focus_targets_on_image, acquisition_targets_on_image = your_targetfinder(self.image)
and make sure the targets it returns are in the format shown in the code that follows.
Follow the Creating a_new Leginon node to register it and replace a targetfinder node with it in the application you want to use it in.