Skip to content

Commit a7a26fd

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f63cde4 commit a7a26fd

7 files changed

+30
-33
lines changed

.cruft.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"template": "https://github.com/scverse/cookiecutter-scverse",
3-
"commit": "c21b82bf134f3a0f13db7482d4fb04ca1f562d59",
4-
"checkout": "main",
5-
"context": {
6-
"cookiecutter": {
7-
"project_name": "sobolev_alignment",
8-
"package_name": "sobolev_alignment",
9-
"project_description": "Sobolev alignment of deep probabilistic models for comparing single cell profiles",
10-
"author_full_name": "Soufiane Mourragui",
11-
"author_email": "soufiane.mourragui@gmail.com",
12-
"github_user": "saroudant",
13-
"project_repo": "https://github.com/saroudant/sobolev_alignment",
14-
"license": "MIT License",
15-
"_copy_without_render": [
16-
".github/workflows/**.yaml",
17-
"docs/_templates/autosummary/**.rst"
18-
],
19-
"_template": "https://github.com/scverse/cookiecutter-scverse"
20-
}
21-
},
22-
"directory": null
2+
"template": "https://github.com/scverse/cookiecutter-scverse",
3+
"commit": "c21b82bf134f3a0f13db7482d4fb04ca1f562d59",
4+
"checkout": "main",
5+
"context": {
6+
"cookiecutter": {
7+
"project_name": "sobolev_alignment",
8+
"package_name": "sobolev_alignment",
9+
"project_description": "Sobolev alignment of deep probabilistic models for comparing single cell profiles",
10+
"author_full_name": "Soufiane Mourragui",
11+
"author_email": "soufiane.mourragui@gmail.com",
12+
"github_user": "saroudant",
13+
"project_repo": "https://github.com/saroudant/sobolev_alignment",
14+
"license": "MIT License",
15+
"_copy_without_render": [
16+
".github/workflows/**.yaml",
17+
"docs/_templates/autosummary/**.rst"
18+
],
19+
"_template": "https://github.com/scverse/cookiecutter-scverse"
20+
}
21+
},
22+
"directory": null
2323
}

docs/conf.py.rej

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff a/docs/conf.py b/docs/conf.py (rejected hunks)
22
@@ -16,12 +16,15 @@ sys.path.insert(0, str(HERE / "extensions"))
3-
3+
44
# -- Project information -----------------------------------------------------
5-
5+
66
+# NOTE: If you installed your project in editable mode, this might be stale.
77
+# If this is the case, reinstall it to refresh the metadata
88
info = metadata("sobolev_alignment")
@@ -13,7 +13,7 @@ diff a/docs/conf.py b/docs/conf.py (rejected hunks)
1313
-repository_url = f"https://github.com/saroudant/{project_name}"
1414
+urls = dict(pu.split(", ") for pu in info.get_all("Project-URL"))
1515
+repository_url = urls["Source"]
16-
16+
1717
# The full version, including alpha/beta/rc tags
1818
release = info["Version"]
1919
@@ -109,6 +113,7 @@ html_title = project_name
@@ -22,5 +22,5 @@ diff a/docs/conf.py b/docs/conf.py (rejected hunks)
2222
"use_repository_button": True,
2323
+ "path_to_docs": "docs/",
2424
}
25-
25+
2626
pygments_style = "default"

pyproject.toml.rej

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff a/pyproject.toml b/pyproject.toml (rejected hunks)
22
@@ -2,7 +2,6 @@
33
build-backend = "hatchling.build"
44
requires = ["hatchling"]
5-
5+
66
-
77
[project]
88
name = "sobolev_alignment"

sobolev_alignment/sobolev_alignment.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def _generate_artificial_samples(
526526
Number of artificial samples to produce for source and for target.
527527
528528
Returns
529-
----------
529+
-------
530530
artificial_data: dict
531531
Dictionary containing the generated data for both source and target
532532
"""
@@ -831,7 +831,7 @@ def compute_consensus_features(self, X_input: dict, n_similar_pv: int, fit: bool
831831
By default, return a DataFrame.
832832
833833
Returns
834-
----------
834+
-------
835835
interpolated_proj_df: pd.DataFrame or sc.AnnData
836836
DataFrame or AnnData of concatenated source and target samples after projection on consensus features.
837837
"""
@@ -951,7 +951,7 @@ def scvi_model_selection(
951951
Proportion of samples (cells) to be taken inside the test data.
952952
953953
Returns
954-
----------
954+
-------
955955
SobolevAlignment instance.
956956
"""
957957
data = {"source": X_source, "target": X_target}
@@ -1004,7 +1004,7 @@ def krr_model_selection(
10041004
source or target models are aligned to themselves.
10051005
10061006
Returns
1007-
----------
1007+
-------
10081008
SobolevAlignment instance.
10091009
"""
10101010
# Log input if required

tests/test_basic.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pytest
2-
32
import sobolev_alignment
43

54

tests/test_krr_approx.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import pytest
33
import scipy
44
import torch
5-
65
from sobolev_alignment import KRRApprox
76

87
n_samples = 2000

tests/test_sobolev_alignment.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import pandas as pd
33
import pytest
44
from anndata import AnnData
5-
65
from sobolev_alignment import SobolevAlignment
76

87
n_samples = 500

0 commit comments

Comments
 (0)