From c6b887585244d9741dcd36dad83c23f976e20391 Mon Sep 17 00:00:00 2001 From: sparonuzzi Date: Thu, 14 Mar 2024 15:35:45 +0100 Subject: [PATCH] Moved edit platform before creating experiment. Moved bsc_user --> remote_user --- RemoteDummy-fakenode.ipynb | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/RemoteDummy-fakenode.ipynb b/RemoteDummy-fakenode.ipynb index d87658f..5dedae4 100644 --- a/RemoteDummy-fakenode.ipynb +++ b/RemoteDummy-fakenode.ipynb @@ -87,6 +87,29 @@ "!ls {exp_root}/conf" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "5848882d-615c-47c6-a0bd-4c1b0a12e1dc", + "metadata": {}, + "outputs": [], + "source": [ + "# Now, we have to add a platforms file, which is a yaml file with our username and the platform settings\n", + "# You can also use the file explorer, as the experiment is mounted\n", + "platforms_file = f\"\"\"PLATFORMS:\n", + " COMPUTING_NODE:\n", + " TYPE: ps\n", + " HOST: {host}\n", + " PROJECT: {project}\n", + " USER: {remote_user}\n", + " SCRATCH_DIR: {scratch_dir}\n", + " ADD_PROJECT_TO_HOST: false\n", + "\"\"\"\n", + "# And store it in the conf path\n", + "with open(f\"{expid}/conf/platforms_{expid}.yml\", \"w\") as fd:\n", + " fd.write(platforms_file)" + ] + }, { "cell_type": "code", "execution_count": null, @@ -129,29 +152,6 @@ "IFrame(f\"{expid}/plot/{Path(filepath).name}\", width=600, height=300)" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "49efa78f-7ecd-42a7-962f-488e4493d471", - "metadata": {}, - "outputs": [], - "source": [ - "# Now, we have to add a platforms file, which is a yaml file with our username and the platform settings\n", - "# You can also use the file explorer, as the experiment is mounted\n", - "platforms_file = f\"\"\"PLATFORMS:\n", - " COMPUTING_NODE:\n", - " TYPE: ps\n", - " HOST: {host}\n", - " PROJECT: {project}\n", - " USER: {bsc_user}\n", - " SCRATCH_DIR: {scratch_dir}\n", - " ADD_PROJECT_TO_HOST: false\n", - "\"\"\"\n", - "# And store it in the conf path\n", - "with open(f\"{expid}/conf/platforms_{expid}.yml\", \"w\") as fd:\n", - " fd.write(platforms_file)" - ] - }, { "cell_type": "code", "execution_count": null, @@ -255,7 +255,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.11.2" } }, "nbformat": 4, -- GitLab