Skip to content

Latest commit

 

History

273 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myPGM - Pressure Gauge Monitor

Demo myPGM UI

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.

Main features

  • 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.

Quick start

Once the application is running, a typical workflow is:

  1. Load one or several spectra.
  2. Select the appropriate calibration and fit model.
  3. Apply smoothing or background subtraction if needed.
  4. Run the fit and inspect the extracted pressure.
  5. Add selected results to the table to follow pressure evolution during the experiment.

Installation from source

1) Get a copy of the code:

git clone https://github.com/AHilberer/myPGM.git
cd myPGM

2) (Optional) Set up a virtual environment in the code folder:

python3 -m venv .venv
source .venv/bin/activate

Later, to exit the virtual environment use:

deactivate

3) Install the required dependencies:

python3 -m pip install -r requirements.txt

4) Run the application:

python3 run.py

Executables

Currently not available (WIP)

Contributors

About

Spectral pressure gauge fitting software for pressure determination in high pressure experiments. Currently supports ruby, samarium doped strontium borate, and diamond Raman edges scales.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages