From 4844b3eca39927c40926babfab5d7b66a10f9ea5 Mon Sep 17 00:00:00 2001 From: lkugler <lukas.kugler@gmail.com> Date: Wed, 21 Jun 2023 01:10:58 +0200 Subject: [PATCH] docs --- docs/source/custom_scripts.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/source/custom_scripts.rst b/docs/source/custom_scripts.rst index 1b25e60..4e03159 100644 --- a/docs/source/custom_scripts.rst +++ b/docs/source/custom_scripts.rst @@ -1,8 +1,8 @@ Adding and modifying scripts ============================ -Workflow methods are defined in `dartwrf/workflows.py`. -A workflow method is for example :meth:`dartwrf.workflows.assimilate`, which can be run like this +Workflow methods are defined in the :class:`dartwrf.WorkFlows` class (`dartwrf/workflows.py`). +A workflow method is for example :meth:`dartwrf.WorkFlows.assimilate`, which can be run like this .. code-block:: python from dartwrf.workflows import WorkFlows @@ -16,7 +16,7 @@ A workflow method is for example :meth:`dartwrf.workflows.assimilate`, which can id = w.assimilate(assim_time, prior_init_time, prior_valid_time, prior_path_exp) -Calling :meth:`dartwrf.workflows.assimilate` triggers the execution of the script `dartwrf/assim_synth_obs.py`. +Calling :meth:`dartwrf.WorkFlows.assimilate` triggers the execution of the script `dartwrf/assim_synth_obs.py`. - Why do I need a separate script (in this case `assim_synth_obs.py`) to execute a script? Because some users need to use SLURM, which can only call scripts, not run python code directly. @@ -26,7 +26,7 @@ Recipe to add new functionality Do you need a new script? If not, use an existing one. If you need write a new script, you need to -1. write a workflow method (`dartwrf/workflows.py`), e.g. copy and modify an existing one, -2. therein you call the script with :meth:`dartwrf.utils.ClusterConfig.run_job` available via `self.cluster.run_job`, be careful which command-line arguments you need -3. write the script and parse the command-line arguments -4. call whatever python functions you may need \ No newline at end of file +#. write a workflow method (`dartwrf/workflows.py`), e.g. copy and modify an existing one, +#. therein you call the script with :meth:`dartwrf.utils.ClusterConfig.run_job` available via `self.cluster.run_job`, be careful which command-line arguments you need +#. write the script and parse the command-line arguments +#. call whatever python functions you may need \ No newline at end of file -- GitLab