-
Notifications
You must be signed in to change notification settings - Fork 2
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
NaN warning in GFA table #24
Comments
I think there's a misunderstanding here. The warnings are about rare, historical exposures that contain NaN, and that we're not going to change at this point. The warnings do not mean that new GFA summary data contain NaN. However, that does not mean that NaN in new GFA summary data are impossible, so for completeness, I will check the actively updated 'main' summary file. |
Indeed, we were expecting those warnings to appear only when running the tsnr_afterburner on a production with historical data. We were not expecting those warnings to be the new normal to always be printed every day which is what is currently happening, thus this ticket. @weaverba137 if you do find NaNs in current data, let's get that fixed. If you do not find NaNs in current data, let's revisit the tsnr dataflow triggering the NaN warnings, e.g. perhaps we need to filter by date before doing the NaN check so that we only get a warning if the current data being processed have NaNs, regardless whether earlier dates have NaNs. |
OK, I understand what you mean now. However, I don't think it will be that easy to fix, because |
This file summarizes the exposures that have at least some NaN in the GFA summary files: gfa_nan_summary.csv In total there are 212 unique exposures, so we can definitely call this "rare". The columns are the data columns that are copied from the GFA summary files by
|
@sbailey, I propose closing this issue, because it isn't actually a bug in |
Perhaps the fix is on the desispec side rather than the gfa_reduce side, but this issue was posted because it wasn't an "occasional, very rare" case, but rather something that gets triggered every day when desi_tsnr_afterburner is run for new data. See the logs in /global/homes/d/desi/daily/logfiles/tsnr-daily-YEARMMDD.log where every recent night has multiple warnings about this. i.e. the historical NaNs are triggering warnings when processing current data. Could you investigate why that is happening and update the data flow so that the warnings only appear for nights that actually have NaNs? If the situation isn't obvious from the code, we can generate a reproducer example once Perlmutter is back. |
OK, but as I've already mentioned, I believe the solution involves a complete rewrite of |
It's not drop everything urgent, and we defacto are ignoring those warnings for now, but I'd like to keep this ticket open until the symptom is actually resolved (or otherwise you can replace it with a new ticket on desispec). |
OK, I feel more comfortable moving this to a desispec issue. In progress... |
Replaced by desihub/desispec#2367. |
As a result of desispec PR #2336, the following warning shows up in the tsnr-daily-$NIGHT.log for every night starting 20240824:
The text was updated successfully, but these errors were encountered: