From e90b6abe4d1ef574b7a35b2db086f8de1c3f87e5 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Thu, 29 Jun 2023 13:33:22 -0400 Subject: [PATCH] black --- festim/generic_simulation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/festim/generic_simulation.py b/festim/generic_simulation.py index 88e05a677..1f7dfbe57 100644 --- a/festim/generic_simulation.py +++ b/festim/generic_simulation.py @@ -332,7 +332,9 @@ def iterate(self): # avoid t > final_time next_time = self.t + float(self.dt.value) - if next_time > self.settings.final_time and not np.isclose(self.t, self.settings.final_time): + if next_time > self.settings.final_time and not np.isclose( + self.t, self.settings.final_time + ): self.dt.value.assign(self.settings.final_time - self.t) def display_time(self):