Upload files to "/"

This commit is contained in:
2026-09-30 15:20:31 +00:00
parent cc67401de9
commit 38c09a4272
4 changed files with 350 additions and 97 deletions
+39 -12
View File
@@ -15,6 +15,10 @@ Two measurement modes are supported. **Beam deflection** fits both signals.
there is no deflection: it fits the transmission alone, and needs only delay
and transmission data.
The program also runs without a measurement. In **Simulation** mode nothing is
imported: the signal is computed from the parameters alone, over a delay range
entered by hand, and only the calculated curves are plotted and exported.
![BD Fresnel fitting a measured scan](docs/screenshot.png)
## Features
@@ -27,10 +31,13 @@ and transmission data.
parameter `rho`.
- Excited-state absorption via a five-level population model (S₀, S₁, S₂, T₁,
T₂) solved through the sample depth for a range of radial irradiances.
- Side-by-side transmission and deflection plots with imported data overlaid.
- Side-by-side transmission and deflection plots, with imported data overlaid
when there is any.
- Beam deflection and pump probe measurement modes. Pump probe reads a
two-column delay/transmission scan, fixes the probe on the pump axis, and
offers only the mechanisms that can change the transmission.
- Fitting and simulation run modes. Simulation computes the signal with no
data imported, over a delay range entered in the panel.
- Optional diagnostic figures showing each mechanism's response function before
and after convolution, plus the ESA populations and beam transmissions.
- Export of the data/fit comparison, a full parameter log, and figures at
@@ -62,18 +69,29 @@ python bd_fresnel_gui.py
The window opens with the parameter panel on the left and three tabs on the
right: **Fitting**, **Diagnostics**, and **Parameter log**.
A typical session:
Fitting a measured scan:
1. Set the **Data columns** to match your file, and the delimiter.
2. Choose the **Mode**: Beam deflection or Pump probe.
1. Under **Operation mode**, choose **Beam deflection** or **Pump probe**, and
leave the second toggle on **Fitting**.
2. Set the **Data columns** to match your file, and the delimiter.
3. Press **Import…** and choose a scan. The plots show the measured data.
4. Fill in the beam, material and geometry parameters, and configure one or
more mechanisms with the **Params…** buttons.
5. Press **Fit** to run the simulation and overlay it on the data.
6. Press **Export…** to write the results.
**Fit** stays disabled until a file is imported, and **Export** until a fit has
completed.
Simulating without a measurement:
1. Under **Operation mode**, choose **Simulation**. **Import…** and the data
column fields are disabled, and **Fit** becomes **Simulate**.
2. Set `T_d_min` and `T_d_max` in **Simulation parameters** to the delay range
to compute over. In Fitting mode these come from the imported file, so they
are editable only here.
3. Fill in the parameters and mechanisms as above.
4. Press **Simulate**, then **Export…**.
**Fit** stays disabled until a file is imported; **Simulate** needs only valid
parameters. **Export** stays disabled until a fit or simulation has completed.
Changing the mode, a column number or the delimiter re-reads the imported file.
Any fit is discarded, since it belonged to the previous settings. If the file
@@ -110,12 +128,14 @@ to split on any run of whitespace.
| `DeltaEoE column` | `2` | Deflection data column |
| `Delimiter` | `,` | Data column delimiter character |
### Mode
### Operation mode
| Option | Effect |
|-------------------|-------------------------------------------------|
| `Beam deflection` | Transmission and deflection, offset probe |
| `Pump probe` | Transmission only, centered probe |
| `Fitting` | Compare the calculation against an imported scan |
| `Simulation` | Calculate without a scan, over an entered range |
### Simulation parameters
@@ -126,6 +146,8 @@ to split on any run of whitespace.
| `T_num` | `100` | Number of temporal points |
| `T_max` | `5.0` | Range of temporal sampling (tau_p) |
| `T_d_num` | `150` | Number of delay points over range |
| `T_d_min` | `-5.0` | Delay range start (tau_p), Simulation only |
| `T_d_max` | `5.0` | Delay range end (tau_p), Simulation only |
### Excitation beam parameters
@@ -201,7 +223,7 @@ Exporting to `<name>_fit.txt` also writes, in the same directory:
| File | Contents |
| --- | --- |
| `<name>_fit.txt` | delay, data and fit for `T`, `ΔE/E` and `Δn`; in Pump probe, delay and `T` only |
| `<name>_fit.txt` | delay, data and fit for `T`, `ΔE/E` and `Δn`; in Pump probe, delay and `T` only. In Simulation, the calculated signals alone |
| `<name>_fit_log.txt` | every parameter, plus a manifest of the files written |
| `<name>_fit_combined.jpg` / `.svg` | transmission and deflection, 6.5 in at 300 dpi (Beam deflection) |
| `<name>_fit_transmission.jpg` / `.svg` | transmission only, 3.25 in at 300 dpi (Pump probe) |
@@ -210,10 +232,15 @@ Exporting to `<name>_fit.txt` also writes, in the same directory:
The last two appear only when *Show diagnostic plots during Fit* is ticked.
The log records enough to reproduce a run: data columns and delimiter, the
mode, the simulation grid, every beam, material and geometry value, each
mechanism with its parameters, and the derived quantities (`n_g`, `T_lin`,
`z_0`, `I_0`, `rho`).
In Simulation mode the export is named after the file you choose rather than an
imported scan, and the table holds the calculated signals on their own delay
grid, with no data columns to pair them with.
The log records enough to reproduce a run: both modes, the data columns and
delimiter, the simulation grid including the delay range, every beam, material
and geometry value, each mechanism with its parameters, and the derived
quantities (`n_g`, `T_lin`, `z_0`, `I_0`, `rho`). In Simulation mode the import
path and data column sections are omitted, having nothing to describe.
## Files