I'm considering refactoring existing code to use synpp, and to avoid changing too much the code, one option that came to my mind would be to use decorator functions for converting existing functions to pipeline stages, in a similar way to pytest's parametrize.
Something like:
I'm considering refactoring existing code to use synpp, and to avoid changing too much the code, one option that came to my mind would be to use decorator functions for converting existing functions to pipeline stages, in a similar way to pytest's parametrize. Something like:
This would be converted during process_stages (i.e. before running the pipeline) to something like:
Do you think this could work?