  
          img_list = [ [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256]) ] for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout) ]
  
          img_list_len = len(img_list)
          for i in tqdm( range(0, img_list_len-1), desc="Sorting", file=sys.stdout):
              min_score = float("inf")
              j_min_score = i+1
              for j in range(i+1,len(img_list)):
                  score = cv2.compareHist(img_list[i][1], img_list[j][1], cv2.HISTCMP_BHATTACHARYYA)
                  if score < min_score:
 
</s> remove         img_list = [ [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256]) ] for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout) ]
 </s> add         img_list = [
            [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256])]
            for x in
            tqdm(self.find_images(input_dir), desc="Loading", file=sys.stdout)
        ] </s> remove             j_min_score = i+1
            for j in range(i+1,len(img_list)):
                score = cv2.compareHist(img_list[i][1], img_list[j][1], cv2.HISTCMP_BHATTACHARYYA)
 </s> add             j_min_score = i + 1
            for j in range(i + 1, len(img_list)):
                score = cv2.compareHist(img_list[i][1],
                                        img_list[j][1],
                                        cv2.HISTCMP_BHATTACHARYYA) </s> remove         for i in tqdm ( range(0, img_list_len), desc="Sorting", file=sys.stdout):
 </s> add         for i in tqdm(range(0, img_list_len), desc="Sorting", file=sys.stdout): </s> remove         for i in tqdm ( range(0, img_list_len-1), desc="Sorting", file=sys.stdout):
 </s> add         for i in tqdm(range(0, img_list_len - 1), desc="Sorting", file=sys.stdout): </s> remove         print ("Sorting by histogram similarity...")
 </s> add         print("Sorting by histogram similarity...")
        for i in tqdm(range(0, img_list_len - 1), desc="Sorting",
                      file=sys.stdout):
  
          img_list = [ [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256]) ] for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout) ]
  
          img_list_len = len(img_list)
        for i in tqdm(range(0, img_list_len - 1), desc="Sorting",
                      file=sys.stdout):
              min_score = float("inf")
              j_min_score = i+1
              for j in range(i+1,len(img_list)):
                  score = cv2.compareHist(img_list[i][1], img_list[j][1], cv2.HISTCMP_BHATTACHARYYA)
                  if score < min_score:
keep keep keep keep replace keep keep keep keep keep
 GUI v0.2.1b (#352)

* Code refactor

* Console Added

* Add graphing with matplotlib

* Add GUI preview support

* Improve import handling.

* Add GUI integration for tools.py (Launch tools.py with the gui command)

* Reformat to conform to PEP8.

* Add Tooltips, 

* Make panels user adjustable

* Fix convert.py Sharpen default value 
tools/sort.py