-
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
Add __contains__
?
#108
Comments
We could add a named method instead of overloading |
I think we should add We can consider adding a named method for computability, but we should probably postpone that until we have a clearer picture about if and how we may use a graph structure inside |
I don't understand. This sounds like you want to go for the option that may have conceptual issues in favour of the one where that is less of a problem with the justification that we're unsure about the interface. This seems backwards. Can yo uexplain? |
No, I am suggesting to not implement the one that has conceptual issues. Instead implement a plain companion to |
How does this differ from your original post? It is a check for whether the pipeline contains a provider that can produce the given type. This is how I understood your original idea. |
The original suggested to return whether the pipeline can compute the result. This implies a transitive check whether all dependencies of the provider are fulfilled. |
I see. I'm definitely against supporting this, I never even considered that you could mean this. But the conceptual issue I was talking about is that, with your suggestion, |
So you are suggesting to also not implement #98 (
I think we could easily extend |
We could. But this is a bit tricky. How does
Actually, yes. That is, unless we want |
I have always thought of it like a mapping from named concept -> how is it defined/computed. Parameter tables are the odd one out, but otherwise |
Yes, internally. My concern is with whether we want to enshrine that in the interface. |
With #172 one can simply use something like |
I could be useful to be able to check if a pipeline can compute a certain product, e.g.,
We have to be careful though to keep a clear class interface. Would this make sense conceptually, in the context of what
__setitem__
and__getitem__
do (or would do)?The text was updated successfully, but these errors were encountered: