Skip to content

Conversation

jnsebgosselin
Copy link
Member

@jnsebgosselin jnsebgosselin commented Jun 11, 2021

Currently, the correlation coefficient are calculated for ALL stations every time the target station is changed.

This PR improve this by caching the correlation coefficients in memory and on the disk, so that they are calculated only once. The correlation coefficient are recalculated only when a change is made to the dataset.

@pep8speaks
Copy link

Hello @jnsebgosselin! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 984:56: E226 missing whitespace around arithmetic operator

@jnsebgosselin jnsebgosselin self-assigned this Jun 11, 2021
@jnsebgosselin jnsebgosselin added this to the 0.2 milestone Jun 11, 2021
@jnsebgosselin jnsebgosselin merged commit c7fc6bc into master Jun 11, 2021
@jnsebgosselin jnsebgosselin changed the title PR: Cache correlation coefficient PR: Cache correlation coefficients Jun 11, 2021
@jnsebgosselin jnsebgosselin deleted the cache_correl_coeff_results branch June 11, 2021 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants