From 48596f9df38d62bc44bf14e757a0cd2cd50b31dc Mon Sep 17 00:00:00 2001 From: ferrari <maxence.ferrari@gmail.com> Date: Fri, 5 May 2023 10:34:49 +0200 Subject: [PATCH] Fix text formatting --- gsrp_tdoa_hyperres.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gsrp_tdoa_hyperres.py b/gsrp_tdoa_hyperres.py index 731735e..87d114e 100755 --- a/gsrp_tdoa_hyperres.py +++ b/gsrp_tdoa_hyperres.py @@ -341,9 +341,9 @@ if __name__ == "__main__": f'reducing the number of tdoa to evaluate.\n' f'{BColors.BOLD}auto{BColors.ENDC} automatically try to pick the right method.') group4.add_argument('-q', '--quota', type=parse_mem_size, default=np.infty, - help='Memory limit in bytes for the {BColors.BOLD}smart{BColors.ENDC} method. If hit, halt the ' - 'computation of the current frame and skip to the next one. Note that it does not account ' - 'for other memory usage, such as the sound data. Can be a unit such as GB, GiO, Ko, ...') + help=f'Memory limit in bytes for the {BColors.BOLD}smart{BColors.ENDC} method. If hit, halt the ' + f'computation of the current frame and skip to the next one. Note that it does not account ' + f'for other memory usage, such as the sound data. Can be a unit such as GB, GiO, Ko, ...') group4.add_argument('-v', '--verbose', action='store_true', help='Activate verbose for smart mode') args = parser.parse_args() @@ -358,5 +358,5 @@ if __name__ == "__main__": if trace is not None: if trace(): raise e from None - print(f'{BColors.WARNING}{type(e).__name__}: {e}{BColors.WARNING}') + print(f'{BColors.WARNING}{type(e).__name__}: {e}{BColors.ENDC}') sys.exit(2) -- GitLab