diff --git a/PyGUIQt6/DWBA b/PyGUIQt6/DWBA new file mode 100644 index 0000000..16da375 --- /dev/null +++ b/PyGUIQt6/DWBA @@ -0,0 +1,51 @@ +#========= Input for Cleopatra +#===== # for comment line, must be at the beginning of line +#===== the potential contain two words +# one for incoming +# one for outgoing +#================================================= Potenital abberation +#========================= deuteron +# A = An, Cai, 2006 | E < 183 | 12 < A < 238 | http://dx.doi.org/10.1103/PhysRevC.73.054605 +# H = Han, Shi, Shen, 2006 | E < 200 | 12 < A < 209 | http://dx.doi.org/10.1103/PhysRevC.74.044615 +# B = Bojowald et al., 1988 | 50 < E < 80 | 27 < A < 208 | http://dx.doi.org/10.1103/PhysRevC.38.1153 +# D = Daehnick, Childs, Vrcelj, 1980 | 11.8 < E < 80 | 27 < A < 238 (REL) | http://dx.doi.org/10.1103/PhysRevC.21.2253 +# C = Daehnick, Childs, Vrcelj, 1980 | 11.8 < E < 80 | 27 < A < 238 (NON-REL) | http://dx.doi.org/10.1103/PhysRevC.21.2253 // not impletmented yet +# L = Lohr and Haeberli, 1974 | 9 < E < 13 | 40 < A | http://dx.doi.org/10.1016/0375-9474(74)90627-7 +# Q = Perey and Perey, 1963 | 12 < E < 25 | 40 < A | http://dx.doi.org/10.1016/0370-1573(91)90039-O +# Z = Zhang, Pang, Lou, 2016 | 5 < E < 170 | A < 18, spe 6-7Li | https://doi.org/10.1103/PhysRevC.94.014619 +#========================= proton +# K = Koning and Delaroche, 2009 | 0.001 < E < 200 | 24 < A < 209 | Iso. Dep. | http://dx.doi.org/10.1016/S0375-9474(02)01321-0 +# V = Varner et al., (CH89), 1991 | 16 < E < 65 | 4 < A < 209 | http://dx.doi.org/10.1016/0370-1573(91)90039-O +# M = Menet et al., 1971 | 30 < E < 60 | 40 < A | http://dx/doi.org/10.1016/0092-640X(76)90007-3 +# G = Becchetti and Greenlees, 1969 | E < 50 | 40 < A | http://dx.doi.org/10.1103/PhysRev.182.1190 +# P = Perey, 1963 | E < 20 | 30 < A < 100 | http://dx/doi.org/10.1016/0092-640X(76)90007-3 +#========================= A=3 +# x = Xu, Guo, Han, Shen, 2011 | E < 250 | 20 < A < 209 | 3He | http://dx.doi.org/10.1007/s11433-011-4488-5 +# l = Liang, Li, Cai, 2009 | E < 270 | All masses | http://dx.doi.org/10.1088/0954-3899/36/8/085104 +# p = Pang et al., 2009 | All E | All masses | Iso. Dep. | http://dx.doi.org/10.1103/PhysRevC.79.024615 +# c = Li, Liang, Cai, 2007 | E < 40 | 48 < A < 232 | Tritons | http://dx.doi.org/10.1016/j.nuclphysa.2007.03.004 +# t = Trost et al., 1987 | 10 < E < 220 | 10 < A < 208 | http://dx.doi.org/10.1016/0375-9474(87)90551-3 +# h = Hyakutake et al., 1980 | 90 < E < 120 | About 58 < A < 92 | http://dx.doi.org/10.1016/0375-9474(80)90013-5 +# b = Becchetti and Greenlees, 1971 | E < 40 | 40 < A | Iso. Dep. +#========================= alpha +# s = Su and Han, 2015 | E < 398 | 20 < A < 209 | http://dx.doi/org/10.1142/S0218301315500925 +# a = Avrigeanu et al., 2009 | E ??? | A ??? | http://dx.doi/org/10.1016/j.adt.2009.02.001 +# f = Bassani and Picard, 1969(FIXED)| 24 < E < 31 | A = 90 | https://doi.org/10.1016/0375-9474(69)90601-0 +#======================================================================= +#reaction gs-spin orbital spin-pi(Ex) Ex ELab Potentials +#206Hg(d,d)206Hg 0 none 9/2+ 0.000 7.39MeV/u AA #elastic +#206Hg(d,d)206Hg 0 none 9/2+ 1.000 7.39MeV/u AA 0.12 #inelastics_0.12=beta +#206Hg(d,p)207Hg 0 1g9/2 9/2+ 0.000 7.39MeV/u AK +#20F(d,t)19F 2 0d5/2 5/2+ 0.197 10MeV/u Vl +#16N(d,3He)15C 2 0p1/2 5/2+ 0.74 12MeV/u Ax +#10Be(t,p)12Be 0 1L=0 0+ 0.000 5MeV/u lA #two-nucleon_transfer +#32Si(t,p)34Si 0 0L=0 0+ 0.000 8MeV/u lA #two-nucleon_transfer +#133Sb(t,3He)133Sn 7/2 0g7/2 0+ 0.000 8.5MeV/u Ax .... cannot cal + +#82Kr(d,p)83Kr 0 0g9/2 9/2+ 0.000 10MeV/u AK +#82Kr(d,p)83Kr 0 1p1/2 1/2- 0.000 10MeV/u AK +#82Kr(d,p)83Kr 0 1d3/2 3/2+ 1.220 10MeV/u AK +#82Kr(d,p)83Kr 0 2s1/2 1/2+ 1.220 10MeV/u AK + +10Be(d,d)10Be 0 none 0+ 0.000 9MeV/u ZZ +10Be(d,d)10Be 0 none 0+ 0.000 9MeV/u AA diff --git a/PyGUIQt6/PtolemyGUIPy.py b/PyGUIQt6/PtolemyGUIPy.py index 134af54..062295f 100755 --- a/PyGUIQt6/PtolemyGUIPy.py +++ b/PyGUIQt6/PtolemyGUIPy.py @@ -12,6 +12,7 @@ from PyQt6.QtWidgets import ( ) from PyQt6.QtCore import Qt, QUrl from PyQt6.QtGui import QFont + from PyQt6.QtWebEngineWidgets import QWebEngineView import plotly.graph_objects as go import tempfile @@ -68,7 +69,7 @@ class PlotWindow(QWidget): headers = elab_parts # Use the split parts as headers header_found = True # Set the flag to True to skip this block in future iterations - print(f"ELab parts found: {elab_parts}") # Print or process this as needed + # print(f"ELab parts found: {elab_parts}") # Print or process this as needed continue # Split the line by whitespace @@ -82,8 +83,6 @@ class PlotWindow(QWidget): for i in range(len(parts) - 1): data[i].append(float(parts[i + 1])) # Rest of the columns - - print(headers) return x, data, headers def plot_plotly_graph(self): @@ -378,7 +377,7 @@ class MyWindow(QMainWindow): if self.plot_window is None : self.plot_window = PlotWindow(self.DWBAFileName + ".Xsec.txt") self.plot_window.show() - self.plot_window.setAttribute(Qt.WA_DeleteOnClose) # Optional: Automatically delete when closed + # self.plot_window.setAttribute(Qt.WA_DeleteOnClose) # Optional: Automatically delete when closed else: self.plot_window.read_data(self.DWBAFileName + ".Xsec.txt") self.plot_window.plot_plotly_graph() diff --git a/PyGUIQt6/README.md b/PyGUIQt6/README.md index c845b95..990772b 100644 --- a/PyGUIQt6/README.md +++ b/PyGUIQt6/README.md @@ -1,4 +1,3 @@ -~>sudo apt install python3-pyqt6 python3-pip -~>python3 -m pip install pyqt6 PyQt6-WebEngine Plotly \ No newline at end of file +~>python3 -m pip install PyQt6 PyQt6-WebEngine==6.4 Plotly \ No newline at end of file