Skip to content

Commit db77fbb

Browse files
committed
Release v1.4.5
1 parent 9bdd700 commit db77fbb

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ ____
7373
Release Notes
7474
-------------
7575

76-
### Version 1.4.5 (future)
76+
### Version 1.4.5
7777
* Fix: pandas 3 compatibility. Under pandas 3 (mandatory Copy-on-Write) `DataFrame.values` returns a read-only view, so several in-place mutations raised `ValueError: assignment destination is read-only`. `run_palantir` failed in `_differentiation_entropy` (terminal-state identity block, now built with `np.eye(...)`), and `select_branch_cells` failed on its NaN fill of the fate-probability array (now copied before mutation). Compatible with both pandas 2 and 3 ([#180](https://github.com/dpeerlab/Palantir/issues/180)).
78+
* Fix: drop the removed `AnnData(dtype=)` keyword in `cluster_gene_trends`. anndata >=0.11 (which resolves on Python 3.12/3.13) removed the `dtype` argument to `AnnData.__init__`, raising `TypeError: got an unexpected keyword argument 'dtype'`. The array is now cast with `.astype(np.float32)` before construction — behaviour is identical and compatible with all anndata versions ([#180](https://github.com/dpeerlab/Palantir/issues/180)).
7879
* Use `numpy.random.Generator` in place of the legacy global `numpy.random.RandomState` and require
7980
`numpy>=1.17`. Note that since the default PRNG is now [PCG64](https://numpy.org/devdocs/reference/random/bit_generators/pcg64.html) instead of the Mersenne Twister, numerical outputs are expected to differ from
8081
those in previous versions. If exact reproducibility is required, users should pin the relevant prior version.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "palantir"
7-
version = "1.4.4"
7+
version = "1.4.5"
88
description = "Palantir for modeling continuous cell state and cell fate choices in single cell data"
99
authors = [
1010
{name = "Palantir development team", email = "manu.talanki@gmail.com"}

src/palantir/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
__version__ = importlib.metadata.version("palantir")
77
except importlib.metadata.PackageNotFoundError:
88
# Package is not installed, fall back to hardcoded version
9-
__version__ = "1.4.4" # Should match pyproject.toml
9+
__version__ = "1.4.5" # Should match pyproject.toml
1010

1111
__author__ = "Palantir development team"
1212
__author_email__ = "manu.talanki@gmail.com"

0 commit comments

Comments
 (0)