-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
soliket/lensing/lensing.py
Outdated
@@ -126,12 +124,32 @@ def get_requirements(self): | |||
} | |||
} | |||
|
|||
|
|||
|
|||
def _get_data(self): | |||
import sacc |
There was a problem hiding this comment.
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.
soliket/lensing/lensing.py
Outdated
def _get_data(self): | ||
import sacc | ||
|
||
s = sacc.Sacc.load_fits(self.datapath) |
There was a problem hiding this comment.
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 Report
Additional details and impacted files@@ 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
|
* 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>
No description provided.