Skip to content
Snippets Groups Projects
Commit d0ed84da authored by Thomas Holene Løkkeborg's avatar Thomas Holene Løkkeborg
Browse files

#54 liten forenkling av kode

parent cc69073f
No related branches found
No related tags found
1 merge request!28#54 Rectpack for reorganisering av moduler + litt black
Pipeline #74132 passed
......@@ -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."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment