Remove logging and leave it up to the user
This commit is contained in:
parent
2e12947429
commit
aa3131dcc1
9 changed files with 78 additions and 142 deletions
|
|
@ -1,7 +1,5 @@
|
|||
import traceback
|
||||
from typing import Any, Callable, Dict, Iterable, TypeVar
|
||||
|
||||
from tqdm.cli import tqdm
|
||||
from typing import Callable, Iterable, TypeVar
|
||||
|
||||
from ..logger import get_logger
|
||||
|
||||
|
|
@ -14,12 +12,11 @@ V = TypeVar("V")
|
|||
def manage_serial(
|
||||
*,
|
||||
function: Callable[[T], V],
|
||||
tqdm_options: Dict[str, Any],
|
||||
input_values: Iterable[T],
|
||||
ignore_exceptions: bool,
|
||||
) -> Iterable[V]:
|
||||
try:
|
||||
for v in tqdm(input_values, **tqdm_options):
|
||||
for v in input_values:
|
||||
try:
|
||||
yield function(v)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue