Skip to content

Refactor generate_script function and put relevant parts in a header #92

@corentincarton

Description

@corentincarton

Is your feature request related to a problem? Please describe.

The generate_script function should be refactored to be more modular: https://github.com/ecmwf/pyflow/blob/develop/pyflow/nodes.py#L1412

Describe the solution you'd like

A nice improvement could be to put all the header into an include to hide the redundant information from user (most of the header is the same for all tasks).

Describe alternatives you've considered

No response

Additional context

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions