Skip to content

Commit

Permalink
fix headings
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Nov 20, 2024
1 parent dcab430 commit 03e4eb6
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 16 deletions.
22 changes: 19 additions & 3 deletions tutorial/10_hextof_workflow_trXPS_bam_correction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"id": "07076e2f",
"metadata": {},
"source": [
"## Get data paths\n",
"### Get data paths\n",
"\n",
"If it is your beamtime, you can read the raw data and write to the processed directory. For the public data, you can not write to the processed directory.\n",
"\n",
Expand Down Expand Up @@ -201,6 +201,14 @@
"sp_44498.dataframe.head()"
]
},
{
"cell_type": "markdown",
"id": "db246a19",
"metadata": {},
"source": [
"## Data w/o BAM correction"
]
},
{
"cell_type": "markdown",
"id": "1349568e",
Expand Down Expand Up @@ -300,7 +308,7 @@
"id": "2742bb17",
"metadata": {},
"source": [
"### Check BAM versus pulse and train IDs"
"## Check BAM versus pulse and train IDs"
]
},
{
Expand Down Expand Up @@ -338,6 +346,14 @@
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "babbc574",
"metadata": {},
"source": [
"## Apply BAM correction"
]
},
{
"cell_type": "markdown",
"id": "b0c70ad0",
Expand Down Expand Up @@ -473,7 +489,7 @@
"id": "8da4db1f",
"metadata": {},
"source": [
"### We can visualize a BAM correction effect using comparison plots"
"## Comparison of the BAM correction effect"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "916b6dc6",
"metadata": {},
"source": [
"# Tutorial for trXPS for energy calibration using core level side-bands"
]
},
{
"cell_type": "markdown",
"id": "61c9f989",
"metadata": {},
"source": [
"## Preparation"
]
},
{
"cell_type": "markdown",
"id": "aacad72f",
"metadata": {},
"source": [
"### Import necessary libraries"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d33dec83-015b-4b86-9a84-81d10453fe25",
"id": "5e6dcd73",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -29,7 +53,7 @@
"id": "2c147a5f-d84d-448a-9685-056035e464ed",
"metadata": {},
"source": [
"## Get data paths\n",
"### Get data paths\n",
"\n",
"If it is your beamtime, you can read the raw data and write to the processed directory. For the public data, you can not write to the processed directory.\n",
"\n",
Expand Down Expand Up @@ -60,7 +84,7 @@
"id": "92b884c6-416c-43dc-9ea4-59aeb04cd045",
"metadata": {},
"source": [
"## Config setup\n",
"### Config setup\n",
"\n",
"Here, we get the path to the config file and set up the relevant directories. This can also be done directly in the config file."
]
Expand Down Expand Up @@ -101,7 +125,7 @@
"id": "a47990f8",
"metadata": {},
"source": [
"## For reference, we determine the energy calibration from a bias series first"
"## Reference calibration from a bias series"
]
},
{
Expand Down Expand Up @@ -201,7 +225,7 @@
"id": "98266c62-ab48-4746-96c8-2d47cf92c0e9",
"metadata": {},
"source": [
"### Now we can use those parameters and load our trXPS data using additional config file"
"### Now we can use those parameters and load our trXPS data using the additional config file"
]
},
{
Expand Down Expand Up @@ -241,12 +265,20 @@
"res_ref.plot()"
]
},
{
"cell_type": "markdown",
"id": "0d735518",
"metadata": {},
"source": [
"## Energy calibration using side-band peaks"
]
},
{
"cell_type": "markdown",
"id": "6c2c8918-322b-4429-8ee9-cc8d032c82d3",
"metadata": {},
"source": [
"## Visualize trXPS data bin in the dldTimeSteps and the corrected delay axis to prepare for energy calibration using SB\n",
"### Visualize trXPS data bin in the dldTimeSteps and the corrected delay axis to prepare for energy calibration using SB\n",
"We now prepare for an alternative energy calibration based on the side-bands of the time-dependent dataset. This is e.g. helpful if no bias series has been obtained."
]
},
Expand Down Expand Up @@ -385,7 +417,7 @@
"id": "4052d629-1178-4248-a945-d60a6ff34bf3",
"metadata": {},
"source": [
"## Append energy axis into a data frame, bin and visualize data in the calibrated energy and corrected delay axis "
"### Append energy axis into a data frame, bin and visualize data in the calibrated energy and corrected delay axis "
]
},
{
Expand Down Expand Up @@ -424,7 +456,7 @@
"id": "a66fac5e",
"metadata": {},
"source": [
"## Compare spectra to reference\n",
"## Compare to reference\n",
"While this calibration methods gives a reasonable approximation to the energy axis, there are some deviations to the bias method, so it should be used with care"
]
},
Expand Down
10 changes: 5 additions & 5 deletions tutorial/9_hextof_workflow_trXPD.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"id": "d3ed214a",
"metadata": {},
"source": [
"## Get data paths\n",
"### Get data paths\n",
"\n",
"If it is your beamtime, you can access both read the raw data and write to processed directory. For the public data, you can not write to processed directory.\n",
"\n",
Expand Down Expand Up @@ -82,7 +82,7 @@
"id": "30effaac",
"metadata": {},
"source": [
"## Config setup\n",
"### Config setup\n",
"\n",
"Here we get the path to the config file and setup the relevant directories. This can also be done directly in the config file."
]
Expand Down Expand Up @@ -123,7 +123,7 @@
"id": "ee483947",
"metadata": {},
"source": [
"## Prepare Energy Calibration\n",
"### Prepare Energy Calibration\n",
"Instead of making completely new energy calibration we can take existing values from the calibration made in the previous tutorial. This allows us to calibrate the conversion between the digital values of the dld and the energy."
]
},
Expand Down Expand Up @@ -168,7 +168,7 @@
"id": "f070b3bb",
"metadata": {},
"source": [
"### Read data\n",
"## Read data\n",
"Now we can use those parameters and load our trXPD data using additional config file"
]
},
Expand Down Expand Up @@ -299,7 +299,7 @@
"id": "43e84eff",
"metadata": {},
"source": [
"### XPD from W4f core level\n",
"## XPD from W4f core level\n",
"\n",
"Now we can bin not only in energy but also in both momentum directions to get XPD patterns of different core level line of tungsten."
]
Expand Down

0 comments on commit 03e4eb6

Please sign in to comment.