Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix): ci #149

Merged
merged 7 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Python package

on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
schedule:
- cron: "0 5 1,15 * *"

Expand All @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", 3.11, 3.12]
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion muon/_atac/preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def tfidf(
if log_tfidf:
tf_idf = np.log1p(tf_idf)

res = np.nan_to_num(tf_idf, 0)
res = np.nan_to_num(tf_idf, nan=0.0)
if not inplace:
return res

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Intended Audience :: Science/Research"
]
requires-python = ">= 3.8"
requires-python = ">= 3.10"
requires = [
"numpy",
"pandas",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_muon_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ def test_multi_group(self, filepath_hdf5):

assert all(mdata.obs.group.values == mdata.obs.true_group.values)

for sample, value in (("sample9_groupA", 1.719391), ("sample17_groupB", -2.057848)):
for sample, value in (("sample9_groupA", -1.719391), ("sample17_groupB", 2.057848)):
si = np.where(mdata.obs.index == sample)[0]
assert mdata.obsm["X_mofa"][si, 0] == pytest.approx(value)
assert mdata.obsm["X_mofa"][si, 0].item() == pytest.approx(value)


if __name__ == "__main__":
Expand Down
Loading