Skip to content

Export the samplers, Split and the control-flow operators as Python #8708

Description

@kz930

Task Summary

The two samplers, Split, and If, Dummy and Sleep still have no standalone form. A workflow built out of them exports a script of commented placeholders.

Each implements generateStandaloneCode, returning the pandas that does what its executor does. The samplers and Split need more than that. They decide per row whether to keep it, so which rows survive is fixed by the exact sequence java.util.Random produces. Seeding Python's own generator, or numpy's, with the same seed selects a different set, and the script would then report a different sample than the workflow it came from. The generator is transcribed instead, in a helper the three share.

Step 11c in #8325.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions