PtolemyGUI/PyGUIQt6
2024-11-07 16:17:28 -05:00
..
DWBA added (6Li,d) example in DWBA 2024-11-05 14:58:33 -05:00
PtolemyGUIPy.py good 2024-11-07 16:17:28 -05:00
README.md update READMe.md 2024-11-05 15:11:20 -05:00
requirements.txt add kaleido for requirment 2024-11-06 14:57:17 -05:00

Force install as system packages

Do it as your own risk. If you have other pyQt project, I highly NOT recommand.

python3 -m pip install --break-system-package PyQt6 PyQt6-WebEngine Plotly pandas matplotlib

Use Python Virtual Enviroment

To enable virtual enviroment

sudo apt install python3.12-venv

create an virtual enivriment with name ptolemyGUI

python3 -m venv ptolemyGUI

To activate the virtual enviroment

source ptolemyGUI/bin/activate

To install the packages

pip install -r requirements.txt

To deactivate the virtual enviroment

deactivate

To remove the virtual enviroment, simply remove the folder

rm -rf ptolemyGUI

program structure

the python script use the Cleopatra/inFileCreator to generate the infile for ptolmey, and run the ptolmey, and use the ExtractXsecPy.py to output Xsec.txt. After that, the read_data() in MatPlotLinWindow will read the Xsec.txt file and plot using MatPlotLib.

There is a side program to get isotopes excitation energies from IAEA and plot the energy levels using Plotly.