SBC-Utrecht / PyTom

PyTom software for cryo-tomogram processing
GNU General Public License v2.0
33 stars 8 forks source link

maximum run time for gpu template matching hard coded #40

Open McHaillet opened 1 year ago

McHaillet commented 1 year ago

Maximum runtime for gpu template matching is hardcoded. The GPU template matching class is a subclass of threading.Thread, i.e. started as a thread. The main processes needs to keep check whether the thread finished which is done with the max run time. I dont see why the template matching class needs to be a Thread subclass at all.

Maximum runtime is defined here: https://github.com/FridoF/PyTomPrivate/blob/5ecf60d123ddc820d34d8fffca8b1e657f57ede4/pytom/localization/extractPeaks.py#L254