|
31 | 31 | },
|
32 | 32 | "outputs": [],
|
33 | 33 | "source": [
|
| 34 | + "%load_ext autoreload\n", |
| 35 | + "%autoreload 2\n", |
34 | 36 | "from typing import List\n",
|
35 | 37 | "from pathlib import Path\n",
|
36 | 38 | "import os\n",
|
|
68 | 70 | "beamtime_dir = \"/asap3/flash/gpfs/pg2/2023/data/11019101\" # on Maxwell\n",
|
69 | 71 | "if os.path.exists(beamtime_dir) and os.access(beamtime_dir, os.R_OK):\n",
|
70 | 72 | " path = beamtime_dir + \"/raw/hdf/offline/fl1user3\"\n",
|
| 73 | + " meta_path = beamtime_dir + \"/shared\"\n", |
71 | 74 | " buffer_path = \"Gd_W110/processed/\"\n",
|
72 | 75 | "else:\n",
|
73 | 76 | " # data_path can be defined and used to store the data in a specific location\n",
|
74 | 77 | " dataset.get(\"Gd_W110\") # Put in Path to a storage of at least 10 GByte free space.\n",
|
75 | 78 | " path = dataset.dir\n",
|
| 79 | + " meta_path = path\n", |
76 | 80 | " buffer_path = path + \"/processed/\""
|
77 | 81 | ]
|
78 | 82 | },
|
|
167 | 171 | "metadata": {},
|
168 | 172 | "outputs": [],
|
169 | 173 | "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", |
171 | 175 | "# You can set collect_metadata=True if the scicat_url and scicat_token are defined"
|
172 | 176 | ]
|
173 | 177 | },
|
|
871 | 875 | "source": [
|
872 | 876 | "from sed.core.config import load_config\n",
|
873 | 877 | "import numpy as np\n",
|
874 |
| - "metadata = load_config(path + \"/44824_20230324T060430.json\")\n", |
| 878 | + "metadata = load_config(meta_path + \"/44824_20230324T060430.json\")\n", |
875 | 879 | "\n",
|
876 | 880 | "# Fix metadata\n",
|
877 | 881 | "metadata[\"scientificMetadata\"][\"Laser\"][\"wavelength\"][\"value\"] = float(metadata[\"scientificMetadata\"][\"Laser\"][\"wavelength\"][\"value\"][:-2])\n",
|
|
0 commit comments