if both columns of lastnight are present, use only one#1147
Conversation
abrodze
left a comment
There was a problem hiding this comment.
This looks good. I left one comment on the priority of columns, but I am not sure it impacts the outcome in any way.
|
@abrodze , @corentinravoux - Let's try to get this right, since this variable is used to decide the blinding (and if we make a mistake, we might accidentally not blind the data). From what Paul mentioned on Slack:
Based on that, we should:
What is |
andreufont
left a comment
There was a problem hiding this comment.
We discussed this today at the telecon.
We agreed that we should have a safety net to prevent unblinding by mistake, and one way to do this is to enforce the column COADD_LASTNIGHT. This is already in the DR3 catalogs, and it leaves no room for mistake.
One could also allow for LASTNIGHT, since this would allow us to recycle the DR2 catalog. Alternatively, one could create a new version of the DR2 catalog with that extra column.
At any rate, we agreed to drop LAST_NIGHT since we haven't used it since EDR tests.
|
Actually, the DR2 catalog already uses COADD_LASTNIGHT and LASTNIGHT is not present (good job DR2!), so I've decided to enforce COADD_LASTNIGHT or crash. This was already the preferred option yesterday at the telecon. |
|
@abrodze , @corentinravoux - I think we are ready to merge this now. |
|
The tests are failing on the QSO catalogs in /pscratch/sd/a/abrodze/dev/picca/py/picca/tests/delta_extraction/data which are fuji era catalogs. |
|
Even if that is a pain, I suggest to have backward compatibility. Picca was meant to be multi-survey at first, I think it is important that we keep the compatibility for the whole DESI survey at least |
|
Backwards compatibility should be preserved now with the recent changes. The main remaining failure point for the tests was the lack of night column in the mock catalogs. For now, I use a filler This PR is now not that much different from main aside from requiring COADD_LASTNIGHT if the data is > DR1 cutoff. |
|
Interesting point. My opinion is that picca should be able to work on main DESI releases (EDR, DR1, DR2, DR3) so I guess we should add separated tests for fuji, iron, loa and the release after matternhorn. I will add an issue on this point. |
corentinravoux
left a comment
There was a problem hiding this comment.
Approved after backward compatibility added
|
I let @andreufont adress the max_date=0 point, if it is ok, we can push |
andreufont
left a comment
There was a problem hiding this comment.
Thank you both, I think we can merge this!
If LASTNIGHT is present, then just use this.
If not, check if either LAST_NIGHT or COADD_LASTNIGHT are present.