-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
dependencies is a set not a list #254
Comments
I think better change the code 😄 Internally Should be an easy fix... |
Is the order of I would think it would match the order it was declared in the task's dictionary. i.e. if I only specify |
I just ran into this - the order seems to be arbitrary. I specified a |
can you try master? i will do a release next week (hopefully). |
Just checked and it looks like the order of dependencies is maintained in master. Thanks @schettino72! |
Oops, I was mistaken - sorry. |
Just ran into this. I have a task that has several dependencies of different type (data structure). How am I supposed to process them, when the order from the |
@schettino72 if the order of |
@sdahdah why would you need the order of @gambolputty just save your structure of which filename is what in a separate place. I guess you could use the |
@schettino72 Thanks for answering so fast. I have two different datasets from different sensors that are both required by the algorithm I'm running. One is a CSV and one is a pickle. My current workaround is to search the dependency list for |
|
@schettino72 This makes sense! I was making all my Python actions have the signature |
I think dependency order preservation is great when the order of the input files to a program affect the hash of the output, and you expect |
Hello,
The documentation section titled "keywords with task metadata" says:
dependencies: list of file_dep
In trying dependencies[0] in a task, the interpreter told me that dependencies is actually a set and can't be indexed. Hence, the documentation should be changed to reflect that.
By the way, the work around suggested on stack exchange is to use list(dependencies)[0].
I haven't checked, but it may be that the keyword 'changed' also refers to a set rather than a list as stated in the documentation?
Thanks,
David
The text was updated successfully, but these errors were encountered: