-
Notifications
You must be signed in to change notification settings - Fork 22
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
Update BAL_META #527
Update BAL_META #527
Conversation
qso BAL - BAL metatadata has now more information copied from the templates files - Saving the BAL_META is now optional - BAL_META resembles a BAL catalog - Save BAL_TEMPLATEID in TRUTH_QSO (named QSO_META before)
my viewer were too long, but I think they are actually ok.
py/desisim/io.py
Outdated
meta = Table(fitsio.read(infile, ext=1, upper=True, columns=( | ||
'SDSS_NAME', 'RA', 'DEC', 'PLATE', 'MJD', 'FIBERID'))) | ||
'SDSS_NAME', 'RA', 'DEC', 'PLATE', 'MJD', 'FIBERID','BI_CIV', |
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.
I don't think we are using 'SDSS_NAME', 'RA', 'DEC', 'PLATE', 'MJD' columns at all, I left them here for now just to ask if it is if I remove them from here, otherwise I remove them anyway in line L59 of bal.py. @moustakas @paulmartini ?
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.
These columns were from the original BAL template set; please remove if they're obsolete.
@moustakas @andreufont and @paulmartini, any comments on this PR? BTW Travis failures seems to be unrelated to this 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.
Hi @alxogm - I think the changes look reasonable, but I don't have a clear picture of how the meta data works. It would be great to wait to hear from @paulmartini and @moustakas .
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 looks great. My only "major" comment is about coding style, but that shouldn't hold up this PR.
py/desisim/io.py
Outdated
meta = Table(fitsio.read(infile, ext=1, upper=True, columns=( | ||
'SDSS_NAME', 'RA', 'DEC', 'PLATE', 'MJD', 'FIBERID'))) | ||
'SDSS_NAME', 'RA', 'DEC', 'PLATE', 'MJD', 'FIBERID','BI_CIV', |
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.
These columns were from the original BAL template set; please remove if they're obsolete.
Thanks @moustakas I'll fix the style issues, before merging. |
@andreufont @paulmartini I think this is ready to merge if you agree. Thanks! |
Okay with me. |
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.
Great, happy for it to be merged.
Addressing the issue #526. A test run was made and the resultant files can be located at:
/global/cfs/cdirs/desi/science/lya/arizona_hack_bal/arizona-hack-0.4_balmeta
.The main change is to include more columns to the TRUTH extension BAL_META. See discussion on the issue.