Optimize `SequentialTaskSet`
Fixes #2739 Fixes #2740
As explained in respective issues,SequentialTaskSet now allows task repetition if tasks is a dictionary with weight, and itertools.cycle is used to iterate over tasks in a cycle.
So far only a draft of backend changes.
Let me know if changes are OK and then I will update also tests and docs.
Looks good to me, apart from the import sorting. Run ruff and/or install pre-commit hook (https://pre-commit.com/) to make formatting/checks happen automatically on commit!
I dont use SequentialTaskSets personally, so if there's an issue in the future I might ping you :)
@cyberw Okay, I will fix the build shortly. Another question, though - should I add tests for the tasks being a dictionary in SequentialTaskSet?
@cyberw Okay, I will fix the build shortly. Another question, though - should I add tests for the
tasksbeing a dictionary inSequentialTaskSet?
Yes, I think that would be nice!
Hi @bakhtos ! Are we ready to take this out of draft status? Maybe once you’ve updated the docs?
@cyberw Turned out few modifications to the documentation were necessary, this is now ready
Is the updated PR name ok with you?