Skip to content

Tutorial: Update value of MAP_TEMPLATE in a practical step of rose-app.conf - #3064

Open
mo-wilfwilson wants to merge 1 commit into
metomi:masterfrom
mo-wilfwilson:patch-2
Open

Tutorial: Update value of MAP_TEMPLATE in a practical step of rose-app.conf#3064
mo-wilfwilson wants to merge 1 commit into
metomi:masterfrom
mo-wilfwilson:patch-2

Conversation

@mo-wilfwilson

Copy link
Copy Markdown

The lines a little above say:

Copy the remaining environment variables defined in the forecast
task within the flow.cylc file into the rose-app.conf
file of the forecast application, replacing any values already
specified if necessary. Remove the lines from the flow.cylc file
when you are done.

And MAP_TEMPLATE has a new value in flow.cylc for me, so shouldn't the answer look like I've indicated in the diff?

The lines a little above say:

>    Copy the remaining environment variables defined in the `forecast`
>      task within the `flow.cylc` file into the `rose-app.conf`
>      file of the `forecast` application, replacing any values already
>      specified if necessary. Remove the lines from the `flow.cylc` file
>      when you are done.

And `MAP_TEMPLATE` has a new value in `flow.cylc` for me, so shouldn't the answer look like I've indicated?
@mo-wilfwilson

Copy link
Copy Markdown
Author

Okay, probably not, because then the workflow doesn't work:

Plotting disabled
Traceback (most recent call last):
  File "/home/users/wilf.wilson/cylc-run/rose-suite-tutorial/run4/app/forecast/bin/forecast", line 253, in <module>
    main(*args)
  File "/home/users/wilf.wilson/cylc-run/rose-suite-tutorial/run4/app/forecast/bin/forecast", line 241, in main
    util.generate_html_map(map_file, map_template, forecasts, domain,
  File "/home/users/wilf.wilson/cylc-run/rose-suite-tutorial/run4/app/forecast/bin/util.py", line 301, in generate_html_map
    with open(template_file, 'r') as template:  # noqa: SIM117
         ^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/users/wilf.wilson/cylc-run/rose-suite-tutorial/run4/lib/template/map.html'
[FAIL] forecast $INTERVAL $N_FORECASTS # return-code=1
2026-07-22T15:01:43+01:00 CRITICAL - failed/ERR

So maybe the code for flow.cylc that the tutorial creates is wrong? i.e. shouldn't contain the line MAP_TEMPLATE=$CYLC_WORKFLOW_RUN_DIR/lib/template/map.html?

@mo-wilfwilson mo-wilfwilson changed the title Update value of MAP_TEMPLATE in rose-app.conf in practical step Tutorial: Update value of MAP_TEMPLATE in a practical step of rose-app.conf Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant