Skip to content

Commit

Permalink
release: updated v1.2.0 and RTD for py312 (#2991)
Browse files Browse the repository at this point in the history
Co-authored-by: Can Ergen <[email protected]>
  • Loading branch information
ori-kron-wis and canergen authored Sep 26, 2024
1 parent 4199a47 commit a557cf9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Starting from version 0.20.1, this format is based on [Keep a Changelog], and th
to [Semantic Versioning]. Full commit history is available in the
[commit logs](https://github.com/scverse/scvi-tools/commits/).

## Version 1.2 (unreleased)
## Version 1.2

### 1.2.0 (unreleased)
### 1.2.0 (2024-09-26)

#### Added

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/notebooks
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["hatchling"]

[project]
name = "scvi-tools"
version = "1.1.6"
version = "1.2.0"
description = "Deep probabilistic analysis of single-cell omics data."
readme = "README.md"
requires-python = ">=3.10"
Expand All @@ -15,6 +15,7 @@ authors = [
maintainers = [
{name = "The scvi-tools development team", email = "[email protected]"},
]

urls.Documentation = "https://scvi-tools.org"
urls.Source = "https://github.com/scverse/scvi-tools"
urls.Home-page = "https://scvi-tools.org"
Expand Down Expand Up @@ -55,7 +56,6 @@ dependencies = [
"xarray>=2023.2.0",
]


[project.optional-dependencies]
tests = ["pytest", "pytest-pretty", "coverage", "scvi-tools[optional]"]
editing = ["jupyter", "pre-commit"]
Expand Down
4 changes: 2 additions & 2 deletions src/scvi/module/_totalvae.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,8 @@ def marginal_ll(self, tensors, n_mc_samples, return_mean: bool = True):
return log_lkl

def on_load(self, model: BaseModelClass):
manager = model.get_anndata_manager(model.adata)
source_version = manager.registry[_constants._SCVI_VERSION_KEY]
manager = model.get_anndata_manager(model.adata, required=True)
source_version = manager._source_registry[_constants._SCVI_VERSION_KEY]
version_split = source_version.split(".")
if int(version_split[0]) >= 1 and int(version_split[1]) >= 2:
return
Expand Down

0 comments on commit a557cf9

Please sign in to comment.