Skip to content

Commit

Permalink
More linting and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
aarmey committed Nov 25, 2024
1 parent a05949a commit d63937e
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 32 deletions.
3 changes: 1 addition & 2 deletions cellcommunicationpf2/cc_pf2.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import anndata
import numpy as np
import tensorly as tl
from pymanopt.manifolds import Stiefel
from pymanopt import Problem
from pymanopt.optimizers import TrustRegions, ConjugateGradient
from pymanopt.optimizers import ConjugateGradient
import pymanopt
import autograd.numpy as anp

Expand Down
2 changes: 0 additions & 2 deletions cellcommunicationpf2/figures/figure1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Figure 1: XX
"""

import anndata
import pandas as pd
from .common import getSetup, subplotLabel


Expand Down
Empty file.
3 changes: 2 additions & 1 deletion cellcommunicationpf2/tests/test_OP.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def test_project_data():

assert projected_X.shape == (obs, rank, rank, LR)

# @pytest.mark.skip(reason="The project method hasn't been completed yet")

@pytest.mark.skip(reason="The project method hasn't been completed yet")
def test_project_data_output():
"""
Tests that the project data method is actually able to solve for the correct optimal projection matrix.
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies = [
"tensorly~=0.9.0",
"tqdm>=4.66",
"cupy-cuda12x>=13.0",
"anndata~=0.11.1",
"scikit-learn>=1.4.2",
"pacmap>=0.7.2",
"tlviz>=0.1.1",
Expand Down
13 changes: 0 additions & 13 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@
# universal: false

-e file:.
anndata==0.11.1
# via cellcommunicationpf2
annoy==1.17.3
# via pacmap
array-api-compat==1.9
# via anndata
autograd==1.7.0
# via cellcommunicationpf2
certifi==2024.8.30
Expand All @@ -34,8 +30,6 @@ fastrlock==0.8.2
# via cupy-cuda12x
fonttools==4.54.1
# via matplotlib
h5py==3.12.1
# via anndata
idna==3.10
# via requests
iniconfig==2.0.0
Expand All @@ -48,19 +42,15 @@ llvmlite==0.43.0
# via numba
matplotlib==3.9.2
# via tlviz
natsort==8.4.0
# via anndata
nodeenv==1.9.1
# via pyright
numba==0.60.0
# via pacmap
numpy==2.0.2
# via anndata
# via autograd
# via cellcommunicationpf2
# via contourpy
# via cupy-cuda12x
# via h5py
# via matplotlib
# via numba
# via pacmap
Expand All @@ -74,15 +64,13 @@ numpy==2.0.2
# via tlviz
# via xarray
packaging==24.1
# via anndata
# via matplotlib
# via pytest
# via statsmodels
# via xarray
pacmap==0.7.3
# via cellcommunicationpf2
pandas==2.2.3
# via anndata
# via statsmodels
# via tlviz
# via xarray
Expand Down Expand Up @@ -111,7 +99,6 @@ scikit-learn==1.5.2
# via cellcommunicationpf2
# via pacmap
scipy==1.14.1
# via anndata
# via cellcommunicationpf2
# via pymanopt
# via scikit-learn
Expand Down
13 changes: 0 additions & 13 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@
# universal: false

-e file:.
anndata==0.11.1
# via cellcommunicationpf2
annoy==1.17.3
# via pacmap
array-api-compat==1.9
# via anndata
autograd==1.7.0
# via cellcommunicationpf2
certifi==2024.8.30
Expand All @@ -32,8 +28,6 @@ fastrlock==0.8.2
# via cupy-cuda12x
fonttools==4.54.1
# via matplotlib
h5py==3.12.1
# via anndata
idna==3.10
# via requests
joblib==1.4.2
Expand All @@ -44,17 +38,13 @@ llvmlite==0.43.0
# via numba
matplotlib==3.9.2
# via tlviz
natsort==8.4.0
# via anndata
numba==0.60.0
# via pacmap
numpy==2.0.2
# via anndata
# via autograd
# via cellcommunicationpf2
# via contourpy
# via cupy-cuda12x
# via h5py
# via matplotlib
# via numba
# via pacmap
Expand All @@ -68,14 +58,12 @@ numpy==2.0.2
# via tlviz
# via xarray
packaging==24.1
# via anndata
# via matplotlib
# via statsmodels
# via xarray
pacmap==0.7.3
# via cellcommunicationpf2
pandas==2.2.3
# via anndata
# via statsmodels
# via tlviz
# via xarray
Expand All @@ -98,7 +86,6 @@ scikit-learn==1.5.2
# via cellcommunicationpf2
# via pacmap
scipy==1.14.1
# via anndata
# via cellcommunicationpf2
# via pymanopt
# via scikit-learn
Expand Down

0 comments on commit d63937e

Please sign in to comment.