Skip to content
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

(derived) Setting a filter expression to define the base of an array variable #215

Closed
jamesrkg opened this issue Dec 6, 2017 · 2 comments
Assignees
Milestone

Comments

@jamesrkg
Copy link

jamesrkg commented Dec 6, 2017

This is related to/clarifies #196. This ticket should put what is described in that ticket into context.

We need a way to use a filter expression to define the base for an array variable. All rows that do not satisfy the filter expression should be set to missing for the entire variable (so, all subvariables).

This is related to #196 because such a filter would be needed to establish what the base of the new variable described there is, by setting a filter such as that the original is not empty.

This is also related to #216 which requests for the same sort of control but at the subvariable-level, rather than the variable-level.

Example for clarity (not necessarily an API suggestion):

ds[alias].base_filter = "valid(other_array)"
@xbito
Copy link
Contributor

xbito commented Dec 28, 2017

@jjdelc over here too, is that possible?

@jamesrkg
Copy link
Author

jamesrkg commented Feb 7, 2018

This would actually be addressed by #228 so I'm going to close it.

At most this would be a convenience for overwriting any existing data with -1 based on a given filter. If #228 was resolved I'm not sure it would be needed, or at least it would not be pressing as this is effectively a workaround for that problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants