Skip to content

Move to AbstractVector #99

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 46 commits into from
Apr 27, 2020
Merged

Move to AbstractVector #99

merged 46 commits into from
Apr 27, 2020

Conversation

willtebbutt
Copy link
Member

@willtebbutt willtebbutt commented Apr 25, 2020

Addresses #43 .

In the process of refactoring, it became necessary to also address #94 as this turned out to be blocking.

Other notable changes:

  • The Transform interface needed to change because the type of the input no longer determines whether you're operating on a single data point, or mapping across an entire data set. Consequently apply this PR removes apply in favour of evaluating the transform (transform a single data point) and map(t, x) to apply a transform over each element of a data set efficiently.
  • Quite a lot of test have been added, but coverage is down a bit for some reason. I'll wait for tests to pass to figure out where we've lost stuff.

One thing I did that I should probably have opened an issue about is stop constraining the parameters of ARDTransform and ScaleTransform to be greater than zero as it's not a requirement of these transformations that you do so. I'm happy to revert the change in this PR and open an issue to discuss further if anyone objects strongly to this particular change.

willtebbutt and others added 2 commits April 26, 2020 13:00
@willtebbutt
Copy link
Member Author

All comments addressed, ready for a second round of reviewing @devmotion @theogf

willtebbutt and others added 3 commits April 26, 2020 13:43
Co-Authored-By: David Widmann <[email protected]>
Co-Authored-By: David Widmann <[email protected]>
Co-Authored-By: David Widmann <[email protected]>
@willtebbutt
Copy link
Member Author

Thanks for the review @devmotion

@willtebbutt
Copy link
Member Author

Thanks @theogf -- let me know if there's anything else that changing.

@theogf
Copy link
Member

theogf commented Apr 26, 2020

I think that's all for me! We can improve the coverage with more tests later

@theogf
Copy link
Member

theogf commented Apr 27, 2020

LGTM !

@willtebbutt willtebbutt merged commit 197a4d2 into master Apr 27, 2020
@willtebbutt willtebbutt deleted the wct/43 branch April 27, 2020 08:41
This was referenced Apr 27, 2020
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