Skip to content
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "tmap2"
version = "0.2.0"
version = "0.2.1"
description = "Tree-based visualization for high-dimensional data"
readme = "README.md"
license = {text = "MIT"}
Expand Down
2 changes: 1 addition & 1 deletion src/tmap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _extend_package_path_for_extensions() -> None:
subset_anndata,
)

__version__ = "0.2.0"
__version__ = "0.2.1"

__all__ = [
"__version__",
Expand Down
4 changes: 1 addition & 3 deletions src/tmap/utils/chemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,7 @@ def _nrings(m):
_sum(p_mols, lambda m: m.GetNumHeavyAtoms())
- _sum(r_mols, lambda m: m.GetNumHeavyAtoms())
),
"delta_rings": (
_sum(p_mols, _nrings) - _sum(r_mols, _nrings)
),
"delta_rings": (_sum(p_mols, _nrings) - _sum(r_mols, _nrings)),
"delta_aromatic_rings": (
_sum(p_mols, rdMolDescriptors.CalcNumAromaticRings)
- _sum(r_mols, rdMolDescriptors.CalcNumAromaticRings)
Expand Down
5 changes: 3 additions & 2 deletions tests/test_minhash.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,10 @@ def test_count_vector_workflow(self):
wmh = WeightedMinHash(dim=100, num_perm=128, seed=42)

# Simulate two documents with word counts
doc1 = np.random.uniform(0.1, 10, size=100)
rng = np.random.default_rng(42)
doc1 = rng.uniform(0.1, 10, size=100)
doc2 = doc1.copy()
doc2[:10] = np.random.uniform(0.1, 10, size=10) # Modify first 10 words
doc2[:10] = rng.uniform(0.1, 10, size=10) # Modify first 10 words

sig1 = wmh.from_weight_array(doc1)
sig2 = wmh.from_weight_array(doc2)
Expand Down