Skip to content
New issue

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

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

Already on GitHub? # 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.

@gchenfc gchenfc requested a review from varunagrawal August 27, 2021 15:30
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.

@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants