Skip to content

[fitting] Local basis refactor#177

Merged
nmellado merged 47 commits intomasterfrom
local_basis
Oct 30, 2025
Merged

[fitting] Local basis refactor#177
nmellado merged 47 commits intomasterfrom
local_basis

Conversation

@nmellado
Copy link
Contributor

@nmellado nmellado commented Jul 11, 2025

This PR adds :

  • A way to make weighting functions that can either use global or local basis (DistWeightFunc and NoWeightFunc were expanded to implement this).
  • The barycenter.cpp test to validate this new feature in the CI.
  • Moves the projectDescent function to the Basket concept, as this can be shared across Fits.

Todo

  • Check if changelog reflects the changes (e.g project descent).
  • Check that fits that do not support global support trigger an error for global basis
  • Check how to properly implement changeBasis in primitives.

@Me-k-01 Me-k-01 linked an issue Jul 15, 2025 that may be closed by this pull request
@Me-k-01 Me-k-01 linked an issue Jul 15, 2025 that may be closed by this pull request
@Me-k-01 Me-k-01 force-pushed the local_basis branch 3 times, most recently from ddfc575 to 533faa8 Compare July 15, 2025 08:18

- name: Checkout helper repository with Ponca as submodule (master branch)
run: git clone https://github.com/poncateam/ci-submodule-helper.git repo
run: git clone https://github.com/Me-k-01/ci-submodule-helper.git -b local-basis repo
Copy link
Collaborator

@Me-k-01 Me-k-01 Jul 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo before merging :

Change this link back to the main branch, and in the ci-submodule-helper repo, merge the PR 2 to the master

Suggested change
run: git clone https://github.com/Me-k-01/ci-submodule-helper.git -b local-basis repo
run: git clone https://github.com/poncateam/ci-submodule-helper.git repo

Me-k-01 pushed a commit to Me-k-01/poncaplot that referenced this pull request Jul 22, 2025
Because of the refactor in the [PR 177](poncateam/ponca#177)
@Me-k-01 Me-k-01 force-pushed the local_basis branch 3 times, most recently from 446c43b to 5f10ecb Compare July 22, 2025 11:44
@Me-k-01 Me-k-01 added the help wanted Extra attention is needed label Aug 29, 2025
@Me-k-01

This comment was marked as resolved.

@Me-k-01 Me-k-01 removed the help wanted Extra attention is needed label Sep 5, 2025
@Me-k-01 Me-k-01 self-requested a review September 5, 2025 12:54
@Me-k-01
Copy link
Collaborator

Me-k-01 commented Sep 5, 2025

@nmellado As discussed outside of GitHub, I've removed the project function from the NeighborFilter when isLocal = False, to prevent the user from using this function on inappropriate Fit.
Can you review the changes?

@Me-k-01 Me-k-01 marked this pull request as ready for review September 5, 2025 13:45
@Me-k-01 Me-k-01 force-pushed the local_basis branch 2 times, most recently from a641e8d to 8352f8f Compare September 9, 2025 09:48
@Me-k-01 Me-k-01 self-assigned this Sep 9, 2025
@Me-k-01
Copy link
Collaborator

Me-k-01 commented Sep 9, 2025

Ready for review @nmellado

Copy link
Contributor Author

@nmellado nmellado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First (partial) round of comments.

@Me-k-01 Me-k-01 force-pushed the local_basis branch 2 times, most recently from 0e76c9b to 241058e Compare September 9, 2025 13:13
fauberva and others added 16 commits October 30, 2025 14:58
Signed-off-by: fauberva <florian.auberval@irit.fr>
Signed-off-by: fauberva <florian.auberval@irit.fr>
And tweaking the values of the sphere point cloud for better barycenter results

Signed-off-by: fauberva <florian.auberval@irit.fr>
Signed-off-by: fauberva <florian.auberval@irit.fr>
- support to compact/non compact kernels
- better represent centerbasis for transparent use of global and local basis in downstream code
Bug was triggered for planar cases
Signed-off-by: fauberva <florian.auberval@irit.fr>
- Use this API is AlgebraicSphere
@nmellado nmellado merged commit 9e7681e into master Oct 30, 2025
10 of 12 checks passed
@nmellado nmellado deleted the local_basis branch October 30, 2025 19:01
Me-k-01 pushed a commit that referenced this pull request Nov 24, 2025
Signed-off-by: fauberva <florian.auberval@irit.fr>
Me-k-01 pushed a commit that referenced this pull request Nov 24, 2025
Signed-off-by: fauberva <florian.auberval@irit.fr>
Me-k-01 pushed a commit that referenced this pull request Nov 24, 2025
Signed-off-by: fauberva <florian.auberval@irit.fr>
nmellado pushed a commit to jmaleo/ponca that referenced this pull request Dec 2, 2025
Signed-off-by: fauberva <florian.auberval@irit.fr>
nmellado pushed a commit to jmaleo/ponca that referenced this pull request Dec 2, 2025
Signed-off-by: fauberva <florian.auberval@irit.fr>
Me-k-01 pushed a commit to jmaleo/ponca that referenced this pull request Dec 10, 2025
Signed-off-by: fauberva <florian.auberval@irit.fr>
Me-k-01 pushed a commit to jmaleo/ponca that referenced this pull request Dec 10, 2025
Signed-off-by: fauberva <florian.auberval@irit.fr>
nmellado pushed a commit to jmaleo/ponca that referenced this pull request Jan 19, 2026
Signed-off-by: fauberva <florian.auberval@irit.fr>
nmellado pushed a commit to jmaleo/ponca that referenced this pull request Jan 19, 2026
Signed-off-by: fauberva <florian.auberval@irit.fr>
Me-k-01 pushed a commit to jmaleo/ponca that referenced this pull request Jan 26, 2026
Signed-off-by: fauberva <florian.auberval@irit.fr>
Me-k-01 pushed a commit to jmaleo/ponca that referenced this pull request Jan 26, 2026
Signed-off-by: fauberva <florian.auberval@irit.fr>
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.

add bases classes for local/global fit

2 participants