From f67c4cf2e59f4695a084a24dd5b3df7c70f1870e Mon Sep 17 00:00:00 2001
From: payno <henri.payno@gmail.com>
Date: Thu, 16 Nov 2023 16:04:17 +0100
Subject: [PATCH] Dox: add example for defining "gpu_card"

---
 doc/tutorials/hello_world.ipynb | 8 ++++----
 example/sleeps.py               | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/tutorials/hello_world.ipynb b/doc/tutorials/hello_world.ipynb
index 92db588..ead06d5 100644
--- a/doc/tutorials/hello_world.ipynb
+++ b/doc/tutorials/hello_world.ipynb
@@ -32,7 +32,7 @@
     "* `walltime` (str): walltime ( <=> `-t` option in slurm)\n",
     "* `python_venv` (str): path to the python environment to source before executing script lines\n",
     "* `modules` (tuple of str): module names to load before executing script lines\n",
-    "* `sbatch_extra_params`: dict: possible extra parameter to be used when cal the 'sbatch' command. For now handles 'export' only"
+    "* `sbatch_extra_params`: dict: possible extra parameter to be used when calling the 'sbatch' command. For now handles 'export' and 'gpu_card'"
    ]
   },
   {
@@ -80,9 +80,6 @@
   }
  ],
  "metadata": {
-  "nbsphinx": {
-   "allow_errors": true
-  },  
   "kernelspec": {
    "display_name": "Python 3",
    "language": "python",
@@ -99,6 +96,9 @@
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
    "version": "3.7.3"
+  },
+  "nbsphinx": {
+   "allow_errors": true
   }
  },
  "nbformat": 4,
diff --git a/example/sleeps.py b/example/sleeps.py
index f99f15c..d232b3d 100644
--- a/example/sleeps.py
+++ b/example/sleeps.py
@@ -15,7 +15,7 @@ slurm_config = {
     # "job_name": "test sluurp",
     # "python_venv": "/scisoft/tomotools/activate dev", # optional python environement to source before script command
     # "modules": ("tomotools", ), # optional module to source before script command
-    # "sbatch_extra_params": {"export": "NONE"}, # extra parameters to provide to sbatch like 'export'
+    # "sbatch_extra_params": {"export": "NONE", "gpu_card": "a40"}, # extra parameters to provide to sbatch like 'export'
 }
 
 # step 1: launch the jobs
-- 
GitLab