myPGM is a desktop application for fitting spectroscopic pressure gauges and estimating pressure in high-pressure experiments.
It currently supports the following pressure scales:
- Ruby fluorescence
- Samarium doped strontium borate fluorescence
- Molecular hydrogen vibron
- Cubic boron nitride Raman
- Diamond Raman edge.
myPGM also provides a simple workflow to process multiple spectra and track pressure evolution during a typical diamond anvil cell experiment. The external pressure control is currently intended for membrane pressure in membrane DAC setups.
- Load and organize several spectra in the same session, including quick access to the latest file from a selected acquisition folder.
- Fit pressure markers with several line-shape models, including single or double peak profiles and Raman edge fitting depending on the selected calibration.
- Switch between supported calibrations directly from the interface and adjust pressure, reference position and temperature parameters interactively.
- Apply basic spectrum preprocessing before fitting, including smoothing, automatic background subtraction and manual background definition.
- Use an optional spectrometer calibration file to recalculate the spectral axis when needed.
- Switch to a dark mode interface for light-sensitive environments, for example during low-light instrument operation.
- Store fitted points in a dedicated pressure table, visualize pressure evolution in a P vs Pm plot, and export the table to CSV.
- Save and reload complete working sessions, including loaded spectra, fit results, table entries and spectrometer calibration state.
myPGM is still a work in progress, so please open an issue or contact the authors if you notice a bug or unexpected behavior.
Once the application is running, a typical workflow is:
- Load one or several spectra.
- Select the appropriate calibration and fit model.
- Apply smoothing or background subtraction if needed.
- Run the fit and inspect the extracted pressure.
- Add selected results to the table to follow pressure evolution during the experiment.
git clone https://github.com/AHilberer/myPGM.gitcd myPGMpython3 -m venv .venvsource .venv/bin/activateLater, to exit the virtual environment use:
deactivatepython3 -m pip install -r requirements.txtpython3 run.pyCurrently not available (WIP)
- Antoine Hilberer - antoine.hilberer@cea.fr
- Alexis Forestier - alexis.forestier@cea.fr
