-
Notifications
You must be signed in to change notification settings - Fork 14
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
change conditional array slice from 1st index to most True values #227
Conversation
Hi @jamesfwood, looks like there is an issue with dependency versions that Snyk wants addressed. Can you help with addressing this? |
Hi @danielfromearth, if you pull in the latest develop into your branch and repush it should fix the issue. It updated pillow version. If this happens again in the future, you can try to do a |
Status update: one of the automated tests ( {'valid_range': array([ 0., 24.], dtype=float32),
'long_name': 'local apparent solar time',
'_FillValue': 9.96921e+36,
'coverage_content_type': 'referenceInformation',
'description': 'local apparent solar time in hours from midnight'} Also note, this error is raised for the granule, |
A further update on this failing test: Looks like the ![]() This seems like it might be a problem with this data file, rather than the subsetter. @jamesfwood, @nlenssen2013, @sliu008, thoughts? |
Update: |
Thanks @sliu008 for reviewing this too! |
Github Issue: #226
Description
This changes the trimming of the conditional array when subsetting both spatially and temporally, so that valid values in the time variable (for TEMPO data) are not inadvertently lost.
Overview of work done
The logic has been changed. Before, the first index of the missing dimension was selected naively. Now, the conditional array is iterated over to find the row/column that has the most True values and that row/column is selected.
Overview of verification done
Tested this manually with TEMPO data locally. Ran and passed all of the automated tests for the subset module.
Overview of integration done
None.
PR checklist:
See Pull Request Review Checklist for pointers on reviewing this pull request