Skip to content

Commit fc818a3

Browse files
committed
add meta_path
1 parent 494c41e commit fc818a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tutorial/4_hextof_workflow.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
},
3232
"outputs": [],
3333
"source": [
34+
"%load_ext autoreload\n",
35+
"%autoreload 2\n",
3436
"from typing import List\n",
3537
"from pathlib import Path\n",
3638
"import os\n",
@@ -68,11 +70,13 @@
6870
"beamtime_dir = \"/asap3/flash/gpfs/pg2/2023/data/11019101\" # on Maxwell\n",
6971
"if os.path.exists(beamtime_dir) and os.access(beamtime_dir, os.R_OK):\n",
7072
" path = beamtime_dir + \"/raw/hdf/offline/fl1user3\"\n",
73+
" meta_path = beamtime_dir + \"/shared\"\n",
7174
" buffer_path = \"Gd_W110/processed/\"\n",
7275
"else:\n",
7376
" # data_path can be defined and used to store the data in a specific location\n",
7477
" dataset.get(\"Gd_W110\") # Put in Path to a storage of at least 10 GByte free space.\n",
7578
" path = dataset.dir\n",
79+
" meta_path = path\n",
7680
" buffer_path = path + \"/processed/\""
7781
]
7882
},
@@ -167,7 +171,7 @@
167171
"metadata": {},
168172
"outputs": [],
169173
"source": [
170-
"sp = SedProcessor(runs=[44762], config=config_override, system_config=config_file, collect_metadata=False, force_recreate=True)\n",
174+
"sp = SedProcessor(runs=[44762], config=config_override, system_config=config_file, collect_metadata=False)\n",
171175
"# You can set collect_metadata=True if the scicat_url and scicat_token are defined"
172176
]
173177
},
@@ -871,7 +875,7 @@
871875
"source": [
872876
"from sed.core.config import load_config\n",
873877
"import numpy as np\n",
874-
"metadata = load_config(path + \"/44824_20230324T060430.json\")\n",
878+
"metadata = load_config(meta_path + \"/44824_20230324T060430.json\")\n",
875879
"\n",
876880
"# Fix metadata\n",
877881
"metadata[\"scientificMetadata\"][\"Laser\"][\"wavelength\"][\"value\"] = float(metadata[\"scientificMetadata\"][\"Laser\"][\"wavelength\"][\"value\"][:-2])\n",

0 commit comments

Comments
 (0)