Skip to content

Commit 3774fc3

Browse files
committed
Format diff_features.py with ruff.
Format `diff_features.py` with ruff.
1 parent 1e7493f commit 3774fc3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pycisTopic/diff_features.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class CistopicImputedFeatures:
4343
A list containing feature names.
4444
project: str
4545
Name of the cisTopic imputation project.
46+
4647
"""
4748

4849
def __init__(
@@ -88,7 +89,6 @@ def subset(
8889
A :class:`CistopicImputedFeatures` containing the selected cells and/or features.
8990
9091
"""
91-
9292
# Create cisTopic logger
9393
level = logging.INFO
9494
log_format = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
@@ -542,7 +542,7 @@ def calculate_per_region_mean_and_dispersion_on_normalized_imputed_acc(
542542
cell_topic = np.asarray(cell_topic, dtype=np.float32)
543543

544544
log.info(
545-
f"Allocate {(regions_chunk_size * n_cells * 4 / 1024 ** 3):.3f} GiB of RAM for "
545+
f"Allocate {(regions_chunk_size * n_cells * 4 / 1024**3):.3f} GiB of RAM for "
546546
f"calculating (partial) imputed accessibility per cell for ({n_cells}) cells "
547547
f"for chunk of {regions_chunk_size} regions."
548548
)
@@ -571,7 +571,7 @@ def calculate_per_region_mean_and_dispersion_on_normalized_imputed_acc(
571571

572572
if current_regions_chunk_size < regions_chunk_size:
573573
log.info(
574-
f"Allocate {(current_regions_chunk_size * n_cells * 4 / 1024 ** 3):.3f} "
574+
f"Allocate {(current_regions_chunk_size * n_cells * 4 / 1024**3):.3f} "
575575
"GiB of RAM for calculating (partial) imputed accessibility per cell "
576576
f"for ({n_cells}) cells for chunk of {current_regions_chunk_size} "
577577
"regions."
@@ -673,7 +673,7 @@ def calculate_per_region_mean_and_dispersion_on_normalized_imputed_acc(
673673
)
674674

675675
log.info(
676-
f"Allocate {(regions_chunk_size * n_cells * 4 / 1024 ** 3):.3f} GiB of RAM "
676+
f"Allocate {(regions_chunk_size * n_cells * 4 / 1024**3):.3f} GiB of RAM "
677677
"for calculating normalized imputed accessibility per region for chunk of "
678678
f"{regions_chunk_size} regions."
679679
)
@@ -710,7 +710,7 @@ def calculate_per_region_mean_and_dispersion_on_normalized_imputed_acc(
710710

711711
if current_regions_chunk_size < regions_chunk_size:
712712
log.info(
713-
f"Allocate {(current_regions_chunk_size * n_cells * 4 / 1024 ** 3):.3f} "
713+
f"Allocate {(current_regions_chunk_size * n_cells * 4 / 1024**3):.3f} "
714714
f"GiB of RAM for calculating normalized imputed accessibility per "
715715
f"region for chunk of {current_regions_chunk_size} regions."
716716
)

0 commit comments

Comments
 (0)