Skip to content

Commit

Permalink
removing colored prints
Browse files Browse the repository at this point in the history
  • Loading branch information
swar committed Apr 6, 2021
1 parent 136c689 commit ec368f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plotter/utilities/print.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ def print_table(jobs, running_work, next_log_check, stop_plotting):
continue
max_characters[i] = length

headers = " ".join([colored(cell.center(max_characters[i]), 'blue') for i, cell in enumerate(statuses[0])])
separator = colored('=', 'green') * (sum(max_characters) + 3 * len(max_characters))
headers = " ".join([cell.center(max_characters[i]) for i, cell in enumerate(statuses[0])])
separator = '=' * (sum(max_characters) + 3 * len(max_characters))
console = [separator, headers, separator]
for row in statuses[1:]:
console.append(" ".join([colored(cell.ljust(max_characters[i]), 'blue') for i, cell in enumerate(row)]))
console.append(" ".join([cell.ljust(max_characters[i]) for i, cell in enumerate(row)]))
console.append(separator)
print("\n".join(console))
cprint(f"Next log check at {next_log_check.strftime('%Y-%m-%d %H:%M:%S')}", 'blue')
print(f"Next log check at {next_log_check.strftime('%Y-%m-%d %H:%M:%S')}")
if stop_plotting:
cprint(f"Plotting has been disabled", 'red')
print()

0 comments on commit ec368f0

Please sign in to comment.