Skip to content

Add optional configurations #4

Open

Description

@mo-tomosevans

The workflow could be streamlined into having more general applications for handling different time periods.
Currently the periods are hardcoded, these arguments could be provided by optional configurations when the workflow is installed to run through more efficiently. This also means the 24 hourly workflow for example can still run if the 6 hourly one encounters an issue.

Activity

  1. mo-tomosevans commented on Dec 9, 2025

    @mo-tomosevans
    CollaboratorAuthor

    I would start with adding one optional config and adapting the workflow accordingly, then introducing more. The optional config should sit in an opt folder, something like opt/rose-suite-6h.conf. Inside the file should be

    [template variables]
    CYCLE_INTERVAL='PT6H'
    ACCUMULATION_PERIOD='6h'
    

    You will then need to modify the graphing (using jinja2) depending on the optional config defined, so if it's 6 hourly

    [[graph]]
        {{CYCLE_INTERVAL}} = """
            (get_data & get_gpm) => (process_analysis & process_periods)
        """
        
        {% if ACCUMULATION_PERIOD == '6h' %}
            PT6H = """
                process_periods => run_series_analysis
            """
        {% else %}
            PT24H = """
                process_periods => run_series_analysis
            """
        {% endif %}
    

    You will then need to update the necessary apps in the process with the arguments for CYCLE_INTERVAL and ACCUMULATION PERIOD.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions