Skip to content

Commit

Permalink
fix f string to long - remove some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonkoehn committed Oct 10, 2024
1 parent 2ef9d49 commit 9d5050a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lollipop/cli/deconvolute.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,17 @@ def _deconvolute_bootstrap(
# resample if we're doing bootstrapping
assert (
namefield in loc_df.columns
), f"bootstrapping needs a column with names for the entries of the tally table,
but no column '{namefield}' found. Use option '--namefield' to specify"
), f"""
bootstrapping needs a column with names for the entries of the tally table,"
but no column '{namefield}' found. Use option '--namefield' to specify
"""
temp_dfb = ll.resample_mutations(
loc_df, loc_df[namefield].unique(), namefield
)[0]
else:
# just run one on everything
temp_dfb = loc_df

# print the memory usage of the current bootstrap
logging.info(f"memory usage: {temp_dfb.memory_usage().sum() / 1024**2} MB")

for mindate, maxdate in (
tqdm(date_intervals, desc=location)
if bootstrap <= 1 and len(date_intervals) > 1
Expand All @@ -204,8 +203,6 @@ def _deconvolute_bootstrap(
temp_df2 = temp_dfb
if temp_df2.size == 0:
continue
# print the memory usage of the current date
logging.info(f"memory usage: {temp_df2.memory_usage().sum() / 1024**2} MB")

# remove uninformative mutations (present either always or never)
variants_columns = list(
Expand Down

0 comments on commit 9d5050a

Please sign in to comment.