Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support iterable columns with require_all_on #435

Merged
merged 2 commits into from
Feb 1, 2022

Conversation

aulemahal
Copy link
Contributor

@aulemahal aulemahal commented Jan 18, 2022

Change Summary

I added a small function to "unpack" the iterable columns into multiple lines, this way the "index" used to check for the "require_all_on" condition is populated with the real elements to compare, not the iterables of elements.

Related issue number

Fixes #434

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable

@aulemahal aulemahal requested a review from andersy005 as a code owner January 18, 2022 20:43
Copy link
Member

@andersy005 andersy005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! Thank you for this addition, @aulemahal! I left a few suggestions. Let me know what you think.

intake_esm/utils.py Outdated Show resolved Hide resolved
intake_esm/_search.py Outdated Show resolved Hide resolved
@andersy005 andersy005 added the enhancement Issues that are found to be a reasonable candidate feature additions label Jan 24, 2022
@andersy005
Copy link
Member

Thank you, @aulemahal! This looks great...

@andersy005 andersy005 changed the title Support iterable cols with require all on Support iterable columns with require_all_on Feb 1, 2022
@andersy005 andersy005 merged commit 01e048c into intake:main Feb 1, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Issues that are found to be a reasonable candidate feature additions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

require_all_on fails with iterables
2 participants