Skip to content

Ensure accepted input types are general where possible #480

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

Merged
merged 14 commits into from
Oct 10, 2022

Conversation

willtebbutt
Copy link
Member

Summary

As discussed in #479 , some of our kernels / transforms etc is overly strict in terms of the types that it accepts, prompting users to find workaround. The goal of this is to resolve these problems and add some tests to prevent regression.

Proposed changes

  • Some type restrictions have been removed / generalised.
  • Some tests have been added.

What alternatives have you considered?

N/A

Breaking changes

N/A

@codecov
Copy link

codecov bot commented Oct 9, 2022

Codecov Report

Base: 68.81% // Head: 79.54% // Increases project coverage by +10.72% 🎉

Coverage data is based on head (62f356a) compared to base (d425983).
Patch coverage: 62.50% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #480       +/-   ##
===========================================
+ Coverage   68.81%   79.54%   +10.72%     
===========================================
  Files          52       52               
  Lines        1347     1354        +7     
===========================================
+ Hits          927     1077      +150     
+ Misses        420      277      -143     
Impacted Files Coverage Δ
src/TestUtils.jl 91.80% <50.00%> (-2.94%) ⬇️
src/transform/selecttransform.jl 27.27% <50.00%> (-63.64%) ⬇️
src/distances/delta.jl 100.00% <100.00%> (ø)
src/kernels/gibbskernel.jl 0.00% <0.00%> (-88.89%) ⬇️
src/kernels/normalizedkernel.jl 0.00% <0.00%> (-82.50%) ⬇️
src/kernels/neuralkernelnetwork.jl 0.00% <0.00%> (-77.56%) ⬇️
src/kernels/overloads.jl 25.00% <0.00%> (-75.00%) ⬇️
src/transform/ardtransform.jl 26.66% <0.00%> (-66.67%) ⬇️
src/transform/transform.jl 40.00% <0.00%> (-60.00%) ⬇️
src/transform/chaintransform.jl 20.00% <0.00%> (-60.00%) ⬇️
... and 27 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@willtebbutt willtebbutt changed the title WIP: Ensure accepted input types are general where possible Ensure accepted input types are general where possible Oct 10, 2022
Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

Looks good to me. I think the coverage comments by codecov are wrong?

@willtebbutt willtebbutt merged commit 46fa287 into master Oct 10, 2022
@willtebbutt willtebbutt deleted the wct/generalise-accepted-input-types branch October 10, 2022 16:31
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.

3 participants