Replies: 2 comments 2 replies
-
Big discovery of the day: the code above works if I do:
With this, I should be able to get it working in the way I hoped. It should be clean from every perspective thanks to these decorators. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Locking this thread for now. The ideas above were eventually implemented in #158. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @modolol,
I've given some more thoughts about how to handle dvas recipe functions in the cleanest way possible. The two challenges we face is the need to deal with many variables (either one after the other, or all at once), and many flights (either one after the other, or all at once).
On the one hand, it would be great if the core step function would not need too much about all the mechanics handling them. On the other hand, the idea of have a
RecipeSteps
class as generic as possible would be ideal, while keep theuaii22.rcp
yaml file as simple as possible.I've been toying around the idea of using decorators to let function designers specify if said function should be sequential or not. Something along the lines:
And then, the function defined in another file, would be:
Problem: I cannot get THIS_FLIGHT and ALL_FLIIGHTS to be set/read dynamically accross the
dvas_recipe
package. Basically, what I'd need is a way to set/read them on the go. I could do it by writing them to file ... but could we do something more elegant ? Do you have any idea why the above does not work ? Is it because I do relative imports rather than absolute ones ?Beta Was this translation helpful? Give feedback.
All reactions