Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basis - Python unit test #860

Merged
merged 8 commits into from
Aug 29, 2021
Merged

Basis - Python unit test #860

merged 8 commits into from
Aug 29, 2021

Conversation

gchenfc
Copy link
Member

@gchenfc gchenfc commented Aug 27, 2021

Python unit test for FitBasis in basis.h, which was added in #403

Replaces #838

This tests:

  • FourierBasis
  • Chebyshev1Basis
  • Chebyshev2Basis
  • Chebyshev2
  • FitBasis where T is the above 4 bases.

I added #include<pybind11/stl.h> to be able to construct FitBasisXXX with a python dictionary. There are other ways to accomplish this but I think this is easiest and most transparent.

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

LGTM modulo docstrings and formatting.

python/gtsam/tests/test_basis.py Show resolved Hide resolved
python/gtsam/tests/test_basis.py Outdated Show resolved Hide resolved
@gchenfc
Copy link
Member Author

gchenfc commented Aug 29, 2021

Will merge in as soon as CI passes

@gchenfc gchenfc merged commit e94ea7c into develop Aug 29, 2021
@gchenfc gchenfc deleted the tests/basis_python branch August 29, 2021 20:19
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.

2 participants