Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5672dfc

Browse files
authored
Merge pull request #25 from afloresep/release/v0.2.1
Release v0.2.1
2 parents 9d69790 + ac68d69 commit 5672dfc

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "scikit_build_core.build"
77

88
[project]
99
name = "tmap2"
10-
version = "0.2.0"
10+
version = "0.2.1"
1111
description = "Tree-based visualization for high-dimensional data"
1212
readme = "README.md"
1313
license = {text = "MIT"}

src/tmap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _extend_package_path_for_extensions() -> None:
5050
subset_anndata,
5151
)
5252

53-
__version__ = "0.2.0"
53+
__version__ = "0.2.1"
5454

5555
__all__ = [
5656
"__version__",

src/tmap/utils/chemistry.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,7 @@ def _nrings(m):
267267
_sum(p_mols, lambda m: m.GetNumHeavyAtoms())
268268
- _sum(r_mols, lambda m: m.GetNumHeavyAtoms())
269269
),
270-
"delta_rings": (
271-
_sum(p_mols, _nrings) - _sum(r_mols, _nrings)
272-
),
270+
"delta_rings": (_sum(p_mols, _nrings) - _sum(r_mols, _nrings)),
273271
"delta_aromatic_rings": (
274272
_sum(p_mols, rdMolDescriptors.CalcNumAromaticRings)
275273
- _sum(r_mols, rdMolDescriptors.CalcNumAromaticRings)

tests/test_minhash.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,10 @@ def test_count_vector_workflow(self):
562562
wmh = WeightedMinHash(dim=100, num_perm=128, seed=42)
563563

564564
# Simulate two documents with word counts
565-
doc1 = np.random.uniform(0.1, 10, size=100)
565+
rng = np.random.default_rng(42)
566+
doc1 = rng.uniform(0.1, 10, size=100)
566567
doc2 = doc1.copy()
567-
doc2[:10] = np.random.uniform(0.1, 10, size=10) # Modify first 10 words
568+
doc2[:10] = rng.uniform(0.1, 10, size=10) # Modify first 10 words
568569

569570
sig1 = wmh.from_weight_array(doc1)
570571
sig2 = wmh.from_weight_array(doc2)

0 commit comments

Comments
 (0)