-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added option for z_truth to be inside an hdf5 group #94
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #94 +/- ##
=======================================
Coverage 96.78% 96.78%
=======================================
Files 31 31
Lines 1584 1585 +1
=======================================
+ Hits 1533 1534 +1
Misses 51 51 ☔ View full report in Codecov by Sentry. |
I did a small change to the evaluator.py so that we would use catalogs where z_truth is inside an hdf5 group like ['photometry'] |
I think what most of the estimator codes do is read in the training data as a whole and then grab the redshift from that data in a separate line. But, this doesn't cover the case where the redshift column might be in a different hdf5 group, should we be worried about that at all?
|
@sschmidt23 If I try to use self.config.hdf5_groupname I get an error when it was not previously defined. Or if I add |
I just pushed a change where to get the test to pass I set an |
6345890
to
6825bbe
Compare
…tion it is not necessary to change the test
Ok, I'm fine with doing it this way, I'll approve the PR, if you think about things further and think we need a "truth_groupname" we can add that in a future PR. |
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.
Looks good to me
Problem & Solution Description (including issue #)
If the spec-z file has truth-z inside an h5 group (for example ['photometry']['z_true']) the evaluator needs to use hdf5_groupname to access this row.
Code Quality
#pragma: no cover
; in the case of a bugfix, a new test that breaks as a result of the bug has been added