Skip to content

Commit

Permalink
hotfix tiles to process (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaraScott authored Jul 15, 2024
1 parent fd3d442 commit d1b785e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/nodes/UpscalerRefiner/McBoaty_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,15 +525,15 @@ def to_computer_index(human_index):
if is_valid_index(start, max) and is_valid_index(end, max):
_tiles_to_process.extend(range(to_computer_index(start), to_computer_index(end) + 1))
else:
log(f"tiles_to_process is not in valid format '{tiles_to_process}' - Allowed formats : indexes from 1 to {max} or any range like 1-{max}", None, COLORS[], f"Node {self.INFO.id}")
log(f"tiles_to_process is not in valid format '{tiles_to_process}' - Allowed formats : indexes from 1 to {max} or any range like 1-{max}", None, COLORS['YELLOW'], f"Node {self.INFO.id}")
else:
# Single index
try:
index = int(index)
if is_valid_index(index, max):
_tiles_to_process.append(to_computer_index(index))
else:
log(f"tiles_to_process is not in valid format '{tiles_to_process}' - Allowed formats : indexes from 1 to {max} or any range like 1-{max}", None, COLORS[], f"Node {self.INFO.id}")
log(f"tiles_to_process is not in valid format '{tiles_to_process}' - Allowed formats : indexes from 1 to {max} or any range like 1-{max}", None, COLORS['YELLOW'], f"Node {self.INFO.id}")
except ValueError:
# Ignore non-integer values
pass
Expand Down Expand Up @@ -876,7 +876,7 @@ def INPUT_TYPES(self):
combined_inputs['required'].pop('pipe', None)
combined_inputs['optional'].pop('pipe_prompty', None)

combined_inputs['required'].pop('tile_to_process', None)
combined_inputs['required'].pop('tiles_to_process', None)

return combined_inputs

Expand Down

0 comments on commit d1b785e

Please sign in to comment.