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

Save memory by only initializing the window function and covariance matrices if store_cov is True and store_window is True #304

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

aewallwi
Copy link
Collaborator

@aewallwi aewallwi commented Feb 24, 2021

With an eye towards nightly power spectra for the RTP that dont necessarily need to produce detailed window functions and covariance matrices, this PR only stores the large cov and window function arrays when store_cov is True and store_window is True.

@aewallwi aewallwi requested review from philbull and saurabh-astro and removed request for philbull and saurabh-astro February 24, 2021 20:02
Copy link
Collaborator

@philbull philbull left a comment

Choose a reason for hiding this comment

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

This looks like a sensible change to me. The tests are also passing, so I approve.

@aewallwi aewallwi merged commit 128f66a into master Feb 24, 2021
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