Skip to content

Commit

Permalink
fit format
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekbhr committed Feb 25, 2024
1 parent e6b88b8 commit d194f93
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
sincei --help
- name: Generate coverage report
if: matrix.os == 'ubuntu-latest'
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
Expand Down
8 changes: 5 additions & 3 deletions sincei/ExponentialFamily.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ def log_likelihood(self, X: torch.Tensor, theta: torch.Tensor):

def load_family_params_to_gpu(self, device):
self.family_params = {
k: self.family_params[k].to(device)
if type(self.family_params[k]) is torch.Tensor
else self.family_params[k]
k: (
self.family_params[k].to(device)
if type(self.family_params[k]) is torch.Tensor
else self.family_params[k]
)
for k in self.family_params
}

Expand Down
9 changes: 6 additions & 3 deletions sincei/scPlotRegion
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@

import sys
import warnings

warnings.simplefilter(action="ignore", category=RuntimeWarning)
warnings.simplefilter(action="ignore", category=PendingDeprecationWarning)
#from pygenometracks import plotTracks
# from pygenometracks import plotTracks


def main(args=None):

#plotTracks.main(args)
# plotTracks.main(args)
sys.stderr.out("Not implemented yet")

#if __name__ == "__main__":

# if __name__ == "__main__":
# main()

0 comments on commit d194f93

Please sign in to comment.