From d0ed84daac82c6a16a9867fe6bf2cd2a8c293217 Mon Sep 17 00:00:00 2001 From: thomahl <thomahl@stud.ntnu.no> Date: Sat, 14 Mar 2020 10:41:33 +0100 Subject: [PATCH] #54 liten forenkling av kode --- soitool/soi.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/soitool/soi.py b/soitool/soi.py index 57cf902..5a177c6 100644 --- a/soitool/soi.py +++ b/soitool/soi.py @@ -377,9 +377,7 @@ class SOI: self.algorithm_sort ] - modules_to_sort = chosen_algorithm_sort(self.modules) - for i, _ in enumerate(self.modules): - self.modules[i] = modules_to_sort[i] + self.modules = chosen_algorithm_sort(self.modules) def reorganize_rectpack(self): """Reorganize modules optimally using the rectpack library.""" -- GitLab