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] committed Feb 19, 2024
1 parent 463cfb9 commit 9f37128
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def __init__(
sampler_cls = (
SequentialSampler
if not shuffle and not weighted
else WeightedRandomSampler
if shuffle and weighted
else RandomSampler
if shuffle and not weighted
else None
else (
WeightedRandomSampler
if shuffle and weighted
else RandomSampler if shuffle and not weighted else None
)
)
if sampler_cls != WeightedRandomSampler:
sampler = BatchSampler(
Expand Down
10 changes: 5 additions & 5 deletions src/spVIPES/dataloaders/_ann_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def __init__(
sampler_cls = (
SequentialSampler
if not shuffle and not weighted
else WeightedRandomSampler
if shuffle and weighted
else RandomSampler
if shuffle and not weighted
else None
else (
WeightedRandomSampler
if shuffle and weighted
else RandomSampler if shuffle and not weighted else None
)
)
if sampler_cls != WeightedRandomSampler:
sampler = BatchSampler(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
https://docs.scvi-tools.org/en/0.9.0/user_guide/notebooks/model_user_guide.html#Mixing-in-pre-coded-features
"""


from typing import List, Optional, Union

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion src/spVIPES/model/base/training_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
https://docs.scvi-tools.org/en/0.9.0/user_guide/notebooks/model_user_guide.html#Mixing-in-pre-coded-features
"""


from typing import Optional, Union

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/spVIPES/module/spVIPESmodule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Main module."""

from typing import Literal

import numpy as np
Expand Down

0 comments on commit 9f37128

Please sign in to comment.