Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and HippocampusGirl committed Mar 13, 2024
1 parent 85d9d2e commit 226aeb5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/gwas/src/gwas/mem/arr.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ def resize(self, *shape: int) -> None:
self.sw.allocations = allocations

@overload
def triangularize(self, pivoting: Literal[True] = True) -> npt.NDArray[np.uint32]:
...
def triangularize(
self, pivoting: Literal[True] = True
) -> npt.NDArray[np.uint32]: ...

@overload
def triangularize(self, pivoting: Literal[False]) -> None:
...
def triangularize(self, pivoting: Literal[False]) -> None: ...

def triangularize(self, pivoting: bool = True):
"""Triangularize to upper triangular matrix via the LAPACK routine GEQRF or
Expand Down
6 changes: 3 additions & 3 deletions src/gwas/src/gwas/score/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ def func(self) -> None:
two_dimensional_stat = stat.transpose().reshape(
(variant_count, 2 * phenotype_count)
)
self.stat_file_array[
variant_slice, phenotype_slice
] = two_dimensional_stat
self.stat_file_array[variant_slice, phenotype_slice] = (
two_dimensional_stat
)

# Allow the calculation to continue
for i in range(job_count):
Expand Down
3 changes: 1 addition & 2 deletions src/gwas/src/gwas/vcf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ def save_to_cache(self, cache_path: Path) -> None:
def read(
self,
dosages: npt.NDArray,
) -> None:
...
) -> None: ...

@staticmethod
def cache_key(vcf_path: Path) -> str:
Expand Down
6 changes: 3 additions & 3 deletions src/gwas/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def vcf_files_by_size_and_chromosome(
base_path / dataset / "pytest" / str(sample_sizes[sample_size_label]),
)
for vcf_file in vcf_files:
vcf_files_by_size_and_chromosome[sample_size_label][
vcf_file.chromosome
] = vcf_file
vcf_files_by_size_and_chromosome[sample_size_label][vcf_file.chromosome] = (
vcf_file
)

return vcf_files_by_size_and_chromosome

Expand Down

0 comments on commit 226aeb5

Please sign in to comment.