Skip to content

Commit

Permalink
Ruff check
Browse files Browse the repository at this point in the history
  • Loading branch information
gtca committed Jan 13, 2025
1 parent b85bc8c commit ed7e46e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/muon/_atac/preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,4 @@ def scopen(
secs = time.time() - start
m, s = divmod(secs, 60)
h, m = divmod(m, 60)
print("[total time: ", "%dh %dm %ds" % (h, m, s), "]")
print("[total time: ", f"{str(h)}h {str(m)}m {str(s)}s]")
8 changes: 1 addition & 7 deletions src/muon/_core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,7 @@ def _set_mofa_data_from_mudata(
for m in range(M):
for g in range(G):
print(
"Loaded view='%s' group='%s' with N=%d samples and D=%d features..."
% (
model.data_opts["views_names"][m],
model.data_opts["groups_names"][g],
n_grouped[g],
D[m],
)
f"Loaded view='{model.data_opts["views_names"][m]}' group='{model.data_opts["groups_names"][g]}' with N={str(n_grouped[g])} samples and D={str(D[m])} features..."
)
print("\n")

Expand Down

0 comments on commit ed7e46e

Please sign in to comment.