HuttleyLab / DiverseSeq

Tools for analysis of sequence divergence
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

ENH: compute_mash_distances updating progress bar for parallel execution #54

Closed GavinHuttley closed 2 months ago

GavinHuttley commented 2 months ago

Inside the for future in futures loop add

        if self._with_progress:
            self._progress.update(distance_task, advance=1, refresh=True)
rmcar17 commented 2 months ago

I gave this a go, and the way the chunks are distributed makes it seem to a user like it's hanging without any progress (until they later all come in at approximately the same type). I think it may be best to keep the current spinner-like bar.