Skip to content

Commit

Permalink
Set default name of the Bin which spawn up automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo kuong committed Sep 29, 2016
1 parent c7d83f2 commit 0efbb1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions binpacker/binpacker.py
Expand Up @@ -388,6 +388,7 @@ def pack_items(self):
while len(self._items) > 0:
m = self.get_truth_table(self._capacity, self._items)
new_bin = Bin(self._capacity)
new_bin.name = '[NEW BIN {}]'.format(len(self._bins))
self._bins.append(new_bin)
bin_index = len(self._bins) - 1
picked_items = self._pick_items(m)
Expand Down

0 comments on commit 0efbb1b

Please sign in to comment.