Eggeling-Lab-Microscope-Software / TRAIT2D

TRAIT2D is a cross-platform Python software package with compilable graphical user interfaces (GUIs) to support Single Particle Tracking experiments.
GNU General Public License v3.0
10 stars 10 forks source link

Simulator: Number of iterations incorrect for HoppingDiffusion #37

Closed john-wigg closed 3 years ago

john-wigg commented 3 years ago

I noticed that the number of iterations for the hopping diffusion calculator was calculated incorrectly.

Changing

iteration < self.Tmax

to

iteration * self.dt < self.Tmax

should fix this.

I added the fix in the dev branch on my fork so this should be fixed when we finally merge.