Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
# To debug the workflow, uncomment this entry AND comment pull_request_target
# pull_request:
# branches: [ main ]
pull_request_target:
branches: [ main, "migrate**" ]
types: [ labeled, opened, reopened, synchronize ]
# pull_request_target:
# branches: [ main, "migrate**" ]
# types: [ labeled, opened, reopened, synchronize ]
schedule:
- cron: "0 5 * * *" # = 06:00 CET = 07:00 CEST

Expand Down
31 changes: 31 additions & 0 deletions doc/transport/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ This documentation of MESSAGEix-Transport, its inputs, configuration, implementa

- :doc:`input` (separate page)—line (1) in the diagram.
- :ref:`transport-implementation` (below)—between lines (1) and (3) in the diagram.

- :doc:`ssp` (separate page)—SSP-specific inputs and data.

- :doc:`output` (separate page)—between lines (3) and (4) in the diagram.

.. toctree::
Expand All @@ -36,6 +39,7 @@ This documentation of MESSAGEix-Transport, its inputs, configuration, implementa

input
output
ssp

Other topics covered on this page:

Expand Down Expand Up @@ -104,6 +108,33 @@ On other page(s): :doc:`disutility`.
Usage
=====

via SLURM/:program:`sbatch`
---------------------------

A script like the following can be used
to repeatedly invoke :program:`mix-models sbatch` with different jobs labels,
corresponding to different labels `mix-models transport run`.
This has the effect of starting multiple Slurm jobs, one per label:

.. code-block:: shell

#!/bin/sh

while IFS=$'\n' read -r label; do
mix-models sbatch -m model.transport --remote --go \
-v username=kishimot \
-v J="'$label'" -- \
"--from='' '$label reported'"
# Pause so overlapping clone operations do not fail
sleep 90s
done << LABELS
SSP1
SSP2
SSP3
LABELS

exit 0

Automated workflow
------------------

Expand Down
Loading
Loading