Skip to content

Commit

Permalink
standardize log output
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamaedler committed Dec 20, 2024
1 parent 8041036 commit 9542b24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/scportrait/pipeline/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,6 @@ def process(self, partial=False, n_cells=None, seed=42):
# directory where intermediate results should be saved
cache: "/mnt/temp/cache"
"""

total_time_start = timeit.default_timer()

start_setup = timeit.default_timer()
Expand Down Expand Up @@ -876,7 +875,7 @@ def process(self, partial=False, n_cells=None, seed=42):

self.log("Running in single threaded mode.")
results = []
for arg in tqdm(args):
for arg in tqdm(args, total = len(args), desc = "Processing cell batches"):
x = f(arg)
results.append(x)
else:
Expand Down Expand Up @@ -919,7 +918,6 @@ def process(self, partial=False, n_cells=None, seed=42):
self.DEFAULT_LOG_NAME = "processing.log" # change log name back to default

self._post_extraction_cleanup()

total_time_stop = timeit.default_timer()
total_time = total_time_stop - total_time_start

Expand Down

0 comments on commit 9542b24

Please sign in to comment.