Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Sep 30, 2024
1 parent ac2fe64 commit 61ef3a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sgkit/tests/io/vcf/test_vcf_writer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,5 +490,5 @@ def test_interleave_speed():

end = time.time()
print(f"bytes written: {bytes_written}")
print(f"duration: {end-start}")
print(f"speed: {bytes_written/(1000000*(end-start))} MB/s")
print(f"duration: {end - start}")
print(f"speed: {bytes_written / (1000000 * (end - start))} MB/s")
2 changes: 1 addition & 1 deletion sgkit/tests/test_stats_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def sample_dataset(draw):
# Split first dimension assignment into two groups and assign second
# dimension with unique names since n cols will differ
dims = [
(f"dim-0-{i%2}",) if i < n_1d else (f"dim-0-{i%2}", f"dim-1-{i}")
(f"dim-0-{i % 2}",) if i < n_1d else (f"dim-0-{i % 2}", f"dim-1-{i}")
for i in range(n_arrs)
]

Expand Down
4 changes: 2 additions & 2 deletions validation/gwas/method/regenie/hail_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def get_plink_sim_dataset(n_variants=16, n_samples=4, n_contigs=2, seed=0):
for s in range(n_samples):
data.append(
{
"v": f"{c+1}:{v+1}:A:C",
"s": f"S{s+1:07d}",
"v": f"{c + 1}:{v + 1}:A:C",
"s": f"S{s + 1:07d}",
"cm": 0.1,
"GT": hl.Call([rs.randint(0, 2), rs.randint(0, 2)]),
}
Expand Down

0 comments on commit 61ef3a4

Please sign in to comment.