Skip to content

Commit

Permalink
add support for python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
cklamann committed Jul 5, 2024
1 parent 514bb0e commit 1ba9cea
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

WORKDIR /code

Expand Down Expand Up @@ -41,4 +41,4 @@ COPY --chown=${USER_UID}:${USER_GID} starling/__init__.py /code/starling/__init_

RUN poetry install --with docs,dev

COPY . .
COPY --chown=${USER_UID}:${USER_GID} . .
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

![build](https://github.com/camlab-bioml/starling/actions/workflows/main.yml/badge.svg)
![](https://img.shields.io/badge/Python-3.9-blue)
![](https://img.shields.io/badge/Python-3.10-blue)


STARLING is a probabilistic model for clustering cells measured with spatial expression assays (e.g. IMC, MIBI, etc...) while accounting for segmentation errors.
Expand All @@ -19,7 +20,7 @@ A **tutorial** outlining basic usage is available [here][tutorial].

## Requirements

Python3.9 is required to run starling. If your current version of python is not 3.9, we recommend using [pyenv](https://github.com/pyenv/pyenv) to install a later version alongside your current one. Alternately, you could use the Docker configuration described below.
Python 3.9 or 3.10 are required to run starling. If your current version of python is not one of these, we recommend using [pyenv](https://github.com/pyenv/pyenv) to install a compatible version alongside your current one. Alternately, you could use the Docker configuration described below.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions docs/source/tutorial/getting-started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"outputs": [],
"source": [
"## log training results via tensorboard\n",
"log_tb = pl.logging.TensorBoardLogger(save_dir=\"log\")"
"log_tb = pl.loggers.TensorBoardLogger(save_dir=\"log\")"
]
},
{
Expand Down Expand Up @@ -228,7 +228,7 @@
"## train ST\n",
"st.train_and_fit(\n",
" callbacks=[cb_early_stopping],\n",
" #logger=[log_tb],\n",
" logger=[log_tb],\n",
")"
]
},
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
license = "See License.txt"

[tool.poetry.dependencies]
python = "~3.9"
python = ">= 3.9, < 3.11"
torch = "1.12.1"
pytorch-lightning = "2.1.0"
scanpy = "1.9.5"
Expand Down
1 change: 0 additions & 1 deletion tests/test_sanity.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from os.path import dirname, join

import anndata as ad
import numpy as np
import pandas as pd
from lightning_lite import seed_everything
from pytorch_lightning.callbacks import EarlyStopping
Expand Down

0 comments on commit 1ba9cea

Please sign in to comment.