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

Quantile multiyear (part 1) #86

Merged
merged 17 commits into from
Apr 27, 2020
Merged

Quantile multiyear (part 1) #86

merged 17 commits into from
Apr 27, 2020

Conversation

Rlamboll
Copy link
Collaborator

Pull request

Please confirm that this pull request has done the following:

  • Tests added
  • Documentation added (where applicable)
  • Example added (either to an existing notebook or as a new notebook, where applicable)
  • Description in CHANGELOG.rst added

Adding to CHANGELOG.rst

Please add a single line in the changelog notes similar to one of the following:

- (`#XX <https://github.com/znicholls/silicone/pull/XX>`_) Added feature which does something
- (`#XX <https://github.com/znicholls/silicone/pull/XX>`_) Fixed bug identified in (`#YY <https://github.com/znicholls/silicone/issues/YY>`_)

@Rlamboll Rlamboll requested a review from znicholls April 16, 2020 18:46
@Rlamboll
Copy link
Collaborator Author

Sorry, another mathsy fiddly one that I'm only doing to make the function slightly more intuitive. Part 2, where I actually add the wrapper to this, is coming soon.

@znicholls
Copy link
Collaborator

All good will take a look Monday (under the pump at the moment)

Copy link
Collaborator

@znicholls znicholls left a comment

Choose a reason for hiding this comment

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

Indeed a fiddly one, which docs or examples should I be looking at to understand this?

@Rlamboll Rlamboll requested a review from znicholls April 22, 2020 15:45
@znicholls znicholls mentioned this pull request Apr 25, 2020
Copy link
Collaborator

@znicholls znicholls 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 in general. Longer suggestions in #90

One other question, is it possible to eliminate the code duplication between QuantileRollingWindows and rolling_window_find_quantiles?

@Rlamboll
Copy link
Collaborator Author

Interesting question. We could, but it's currently being used as a check to ensure that nothing untoward happens to the data in a test for the QRW cruncher. Although they were originally designed for different datatypes, they've pretty much drifted into being the same code now.

@znicholls
Copy link
Collaborator

I’d rewrite the test and remove the duplication. Better practice and makes long term maintenance easier

@znicholls znicholls mentioned this pull request Apr 27, 2020
@Rlamboll Rlamboll merged commit e621169 into master Apr 27, 2020
@Rlamboll Rlamboll deleted the quantile_multiyear branch April 27, 2020 21:58
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