Skip to content

Merge dev → main: policy fixes + transform() cluster assignments#36

Merged
koulakis merged 4 commits into
mainfrom
dev
Nov 11, 2025
Merged

Merge dev → main: policy fixes + transform() cluster assignments#36
koulakis merged 4 commits into
mainfrom
dev

Conversation

@ssarfraz

Copy link
Copy Markdown
Collaborator

What’s in this PR

  • Correct buggy auto-policy handling of start_cluster and v2_size_threshold.
  • Update choose_v2_level_block and its call in hierarchical_projection.py.
  • Expose new_points_cluster_assignments: (M, L) int | None returned after transform(new_points).
  • Typing tweaks for Python 3.9 compatibility.

Important context

  • dev was fully synchronized with main before these changes. We reset dev to match main (commit 349c32f “Update the docs.”), so there’s no lingering drift from older work.
  • The previous state of dev (with the older commits) is preserved as a backup branch: dev_backup_20251110_155055. If anything needs to be recovered, it’s safe there.

safe to merge

  • Since dev was aligned with main first, this PR contains only the new, focused changes listed above.
  • CI/tests should behave the same as main aside from the intended fixes/features.

Reviewer checklist

  • Code review of policy handling changes and the new transform() return.
  • Sanity-run any affected notebooks/tests (if applicable).
  • [Optional ] Confirm typing remains compatible with Python 3.9+.

Post-merge: publish to PyPI

After merging to main, I have bumped the package version in setup to 2.0.1, please check and and publish:

- Correct auto-policy handling of `start_cluster` and `v2_size_threshold`.

- Update choose_v2_level_block and its call in hierarchical_projection.py.

- Expose new_points_cluster_assignments: (M, L) int | None after transform().
Auto-applied locally to satisfy CI (matches pre-commit in CI).
@ssarfraz
ssarfraz requested a review from koulakis November 11, 2025 09:31
@ssarfraz ssarfraz added the enhancement New feature or request label Nov 11, 2025
@ssarfraz

Copy link
Copy Markdown
Collaborator Author

@koulakis friendly ping — CI is green ✅

Context: dev was synced to main first (reset at 349c32f). Older dev is preserved as dev_backup_20251110_155055.

Please review & merge dev → main. After merge, please publish to PyPI” more details in the PR description. Thanks!

@koulakis
koulakis merged commit 5eacf7b into main Nov 11, 2025
1 check passed
@koulakis

Copy link
Copy Markdown
Owner

@ssarfraz, done, 2.0.1 is in pypi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants