Skip to content

Commit cf31bd0

Browse files
committed
fix: apply ruff formatting fixes
1 parent 12e85d0 commit cf31bd0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

malariagen_data/anoph/pca.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ def _pca(
257257
if len(non_missing) == 0:
258258
site_modes.append(0)
259259
else:
260-
values, counts = np.unique(non_missing, return_counts=True)
260+
values, counts = np.unique(
261+
non_missing, return_counts=True
262+
)
261263
site_modes.append(values[np.argmax(counts)])
262264
site_modes = np.array(site_modes)
263265
fill_values = np.take(site_modes, np.where(missing_mask)[0])

malariagen_data/anoph/pca_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@
9494
"at each site), 'mean' (replace with the site mean), or 'zero' (replace with zero).",
9595
]
9696

97-
imputation_method_default: imputation_method = "most_common"
97+
imputation_method_default: imputation_method = "most_common"

0 commit comments

Comments
 (0)