Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 18, 2024
2 parents fae061b + 0f49256 commit dfae48b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions spinn_utilities/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
import os
import sys
from typing import Dict, Iterable, List, TypeVar, Union

from spinn_utilities.config_holder import get_config_bool
from spinn_utilities.exceptions import SpiNNUtilsException
from spinn_utilities.log import FormatAdapter
from spinn_utilities.overrides import overrides
from spinn_utilities import logger_utils
Expand Down Expand Up @@ -55,12 +53,7 @@ def __init__(self, total_number_of_things_to_do: Union[int, Sized],
if isinstance(total_number_of_things_to_do, Sized):
self._number_of_things = len(total_number_of_things_to_do)
else:
try:
self._number_of_things = int(total_number_of_things_to_do)
except TypeError as ex:
raise SpiNNUtilsException(
f"{total_number_of_things_to_do=} "
f"should be an int or Sized") from ex
self._number_of_things = int(total_number_of_things_to_do)
self._currently_completed = 0
self._chars_per_thing = None
self._chars_done = 0
Expand Down

0 comments on commit dfae48b

Please sign in to comment.