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

remove txt paths for binning matrix and covmat #118

Merged
merged 5 commits into from
Mar 3, 2023

Conversation

qujia7
Copy link
Collaborator

@qujia7 qujia7 commented Mar 2, 2023

No description provided.

@qujia7 qujia7 linked an issue Mar 2, 2023 that may be closed by this pull request
@qujia7 qujia7 requested a review from itrharrison March 2, 2023 13:33
@@ -126,12 +124,32 @@ def get_requirements(self):
}
}



def _get_data(self):
import sacc
Copy link
Collaborator

Choose a reason for hiding this comment

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

Only import sacc once at the top.

def _get_data(self):
import sacc

s = sacc.Sacc.load_fits(self.datapath)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could probably be refactored so the load_fits only needs to happen once, and the sacc gets stored as e.g. self.sacc_data

@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2023

Codecov Report

Merging #118 (7d4d9be) into master (8af61ed) will increase coverage by 0.22%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   61.30%   61.52%   +0.22%     
==========================================
  Files          30       30              
  Lines        1920     1931      +11     
==========================================
+ Hits         1177     1188      +11     
  Misses        743      743              
Impacted Files Coverage Δ
soliket/lensing/lensing.py 95.74% <100.00%> (+0.56%) ⬆️

@itrharrison itrharrison added the lensing Related to lensing likelihoods label Mar 3, 2023
@itrharrison itrharrison added this to the v0.1 milestone Mar 3, 2023
@itrharrison itrharrison merged commit 7b96f94 into master Mar 3, 2023
@itrharrison itrharrison deleted the sacc_covmat_lensing branch March 3, 2023 11:01
mgerbino pushed a commit that referenced this pull request Oct 4, 2023
* remove txt paths for binning matrix and covmat

* load sacc only once

---------

Co-authored-by: Frank Qu <frankqu@Franks-MacBook-Pro.local>
Co-authored-by: Ian Harrison <itrharrison@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lensing Related to lensing likelihoods
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get lensing covmat from sacc file
3 participants