Skip to content

feat: port March-Dollase texture (#119) and TOF profile (#120) to nanobind - #122

Merged
vincefn merged 7 commits into
nanobind_migration_testfrom
vincefn-port-main-to-nanobind
Nov 3, 2026
Merged

vincefn merged 7 commits into
nanobind_migration_testfrom
vincefn-port-main-to-nanobind

Conversation

@vincefn

@vincefn vincefn commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

What problem does this PR address?

Ports the remaining main PRs into nanobind_migration_test. #107, #113, #115 and #116 were already ported in 117cb30.

CI fixes: this is the first PR against nanobind_migration_test, so CI had never run on this branch.

  • Pass submodules: "true" to the scikit-package workflows, so extern/objcryst is checked out.
  • Exclude the vendored extern/ code from pre-commit.
  • Remove a duplicated test in test_lsq.py (flake8 F811) and fix a typo.
  • Rewrap a list item in nanobind_migration_notes.md that prettier changed on every run.

What should the reviewer(s) do?

Review and merge into nanobind_migration_test. Validation, macOS arm64, Python 3.13:

  • pip install -e . --no-build-isolation -Cbuild-dir=build: passed.

  • pytest tests/ -q: 189 passed. The nanobind: leaked warnings are the existing ones noted in nanobind_migration_notes.md.

  • This PR introduces a public-facing change (e.g., figures, CLI input/output, API).

    • Documentation (e.g., tutorials, examples, README) has been updated.

vincefn and others added 4 commits November 3, 2026 12:03
…obind

- Bind TextureMarchDollase and PowderPatternDiffraction.GetTextureMarchDollase.
  SetPhasePar is bound directly (no RefinablePar workaround) since the
  objcryst submodule (ba6ca89, vincefn/objcryst#105) now clicks the texture
  clock; DeletePhase is also exposed.
- TextureMarchDollase has RefinableObj as a second (non-zero offset) base, so
  it is registered standalone with bind_refinableobj_forwarding and added to
  extractRefinableObjArg.
- Bind ReflectionProfileDoubleExponentialPseudoVoigt; SetProfile gives a TOF
  profile copy the crystal's unit cell.
- Port tests and news items, with extra DeletePhase tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Pass submodules: 'true' to the scikit-package reusable workflows, so that
  extern/objcryst is available when building.
- Exclude extern/ (objcryst submodule, vendored cctbx and newmat) from
  pre-commit hooks.
- Remove duplicated test_lsq_compiled_refined_obj_erase_all_param_set (F811)
  and fix a typo flagged by codespell.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@vincefn

vincefn commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

pre-commit.ci run

pre-commit-ci Bot and others added 3 commits November 3, 2026 11:16
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…tofix

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@vincefn
vincefn merged commit 18e6337 into nanobind_migration_test Nov 3, 2026
4 checks passed
@vincefn
vincefn deleted the vincefn-port-main-to-nanobind branch November 3, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant