uedgetools 1.3.2__tar.gz → 1.3.3rc2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. {uedgetools-1.3.2/src/uedgetools.egg-info → uedgetools-1.3.3rc2}/PKG-INFO +1 -1
  2. {uedgetools-1.3.2 → uedgetools-1.3.3rc2/src/uedgetools.egg-info}/PKG-INFO +1 -1
  3. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDashboard/Dashboard.py +75 -24
  4. uedgetools-1.3.3rc2/src/uetools/VERSION +1 -0
  5. uedgetools-1.3.2/src/uetools/VERSION +0 -1
  6. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/LICENSE +0 -0
  7. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/NOTICE.md +0 -0
  8. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/README.md +0 -0
  9. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/pyproject.toml +0 -0
  10. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/setup.cfg +0 -0
  11. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uedgetools.egg-info/SOURCES.txt +0 -0
  12. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uedgetools.egg-info/dependency_links.txt +0 -0
  13. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uedgetools.egg-info/entry_points.txt +0 -0
  14. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uedgetools.egg-info/requires.txt +0 -0
  15. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uedgetools.egg-info/top_level.txt +0 -0
  16. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeBayesian/BayesDemo.py +0 -0
  17. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeBayesian/BayesUtility.py +0 -0
  18. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeBayesian/Bayesian.py +0 -0
  19. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeBayesian/__init__.py +0 -0
  20. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCampaign/Campaign.py +0 -0
  21. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCampaign/__init__.py +0 -0
  22. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCase/Case.py +0 -0
  23. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCase/Config.py +0 -0
  24. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCase/Input.py +0 -0
  25. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCase/Parallel.py +0 -0
  26. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCase/Save.py +0 -0
  27. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCase/__init__.py +0 -0
  28. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCherab/Cherab.py +0 -0
  29. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCherab/README.md +0 -0
  30. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCherab/__init__.py +0 -0
  31. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCherab/bolometer_sensitivity.py +0 -0
  32. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCherab/d3d/__init__.py +0 -0
  33. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCherab/d3d/bolometer.py +0 -0
  34. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCherab/d3d/wall.py +0 -0
  35. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeCherab/triangulate.py +0 -0
  36. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDEGAS/Coupling.py +0 -0
  37. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDEGAS/__init__.py +0 -0
  38. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDashboard/__init__.py +0 -0
  39. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDashboard/range_slider.py +0 -0
  40. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDatabase/DB_1Dplots.py +0 -0
  41. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDatabase/DB_2Dplots.py +0 -0
  42. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDatabase/Database.py +0 -0
  43. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDatabase/__init__.py +0 -0
  44. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDiagnostics/Diagnostics.py +0 -0
  45. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDiagnostics/__init__.py +0 -0
  46. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeDiagnostics/d3d_bolometer_projection.hdf5 +0 -0
  47. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeGrid/Grid.py +0 -0
  48. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeGrid/__init__.py +0 -0
  49. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UePlot/CasePlot.py +0 -0
  50. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UePlot/Plot.py +0 -0
  51. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UePlot/__init__.py +0 -0
  52. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UePostproc/Postproc.py +0 -0
  53. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeSolver/Solver.py +0 -0
  54. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeSolver/SolverStrategy.py +0 -0
  55. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeSolver/__init__.py +0 -0
  56. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/ADASclass.py +0 -0
  57. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/AboutSetup.py +0 -0
  58. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/Convert.py +0 -0
  59. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/Interpolate.py +0 -0
  60. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/Lookup.py +0 -0
  61. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/RadTransp.py +0 -0
  62. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/Tools.py +0 -0
  63. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/Tracker.py +0 -0
  64. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/Utilities.py +0 -0
  65. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/UeUtils/__init__.py +0 -0
  66. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/__init__.py +0 -0
  67. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/geometryTest.py +0 -0
  68. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/Track.py +0 -0
  69. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/UeGui/Commands.py +0 -0
  70. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/UeGui/ScrollableNotebook.py +0 -0
  71. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/UeGui/__init__.py +0 -0
  72. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/UeGui/example/README.md +0 -0
  73. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/UeGui/example/d3dHsm.h5 +0 -0
  74. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/UeGui/example/ehr2.dat +0 -0
  75. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/UeGui/example/rd_d3dHsm_in.py +0 -0
  76. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/UeGui/example/run.py +0 -0
  77. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/ignore/watch.py +0 -0
  78. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/yamls/__init__.py +0 -0
  79. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/yamls/plots.yaml +0 -0
  80. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/yamls/requiredvariables.yaml +0 -0
  81. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/yamls/setup_example.yaml +0 -0
  82. {uedgetools-1.3.2 → uedgetools-1.3.3rc2}/src/uetools/yamls/standardvariables.yaml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uedgetools
3
- Version: 1.3.2
3
+ Version: 1.3.3rc2
4
4
  Summary: A utility tool for the UEDGE multi-fluid plasma-edge code
5
5
  Author-email: Andreas Holm <holm10@llnl.gov>
6
6
  License: GNU LESSER GENERAL PUBLIC LICENSE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uedgetools
3
- Version: 1.3.2
3
+ Version: 1.3.3rc2
4
4
  Summary: A utility tool for the UEDGE multi-fluid plasma-edge code
5
5
  Author-email: Andreas Holm <holm10@llnl.gov>
6
6
  License: GNU LESSER GENERAL PUBLIC LICENSE
@@ -500,6 +500,7 @@ class CaseDashboard(QWidget):
500
500
  ==========================="""
501
501
  def _createVarButtons(self):
502
502
  from numpy import sum, ndarray
503
+ self.buttonsetup = True
503
504
  self.buttons = {
504
505
  'layout': QGridLayout(),
505
506
  'title': QLabel(self.title("Plots")),
@@ -537,8 +538,8 @@ class CaseDashboard(QWidget):
537
538
  cols[int(i/maxbuttons)].addWidget(
538
539
  self.buttons['items'][key],
539
540
  )
540
- # TODO: Implement smarter check to deactivat buttons
541
- buttonvar = self.get(key)
541
+ test = True
542
+ buttonvar = self.__getattribute__(f'plot_{key}')()
542
543
  if buttonvar is not None:
543
544
  vis = True
544
545
  if len(buttonvar.shape) == 3:
@@ -548,11 +549,12 @@ class CaseDashboard(QWidget):
548
549
  if varsum == 0:
549
550
  self.buttons['items'][key].setEnabled(False)
550
551
  else:
551
- if sum(self.get(key)) == 0:
552
+ if sum(buttonvar) == 0:
552
553
  self.buttons['items'][key].setEnabled(False)
553
554
  i += 1
554
555
  self.checkedButton = self.buttongroup.button(0)
555
556
  self.checkedButton.setChecked(True)
557
+ test = False
556
558
 
557
559
  # Add drop-down
558
560
  self.buttons['items']['dropdown'] = QComboBox()
@@ -592,6 +594,7 @@ class CaseDashboard(QWidget):
592
594
  for i in range(len(cols)):
593
595
  self.buttons['layout'].addLayout(cols[i], 1, i, 1, 1)
594
596
  self.buttons['layout'].addLayout(custom, 2,0,1,len(cols))
597
+ self.buttonsetup = False
595
598
 
596
599
 
597
600
 
@@ -1010,114 +1013,159 @@ class CaseDashboard(QWidget):
1010
1013
  self.enable_ionradio(False)
1011
1014
  self.uncheck_buttons()
1012
1015
 
1013
- def plot_te(self):
1016
+ def plot_te(self):
1017
+ var = self.get('te')/1.602e-19
1018
+ if self.buttonsetup:
1019
+ return var
1014
1020
  self.plot_driver(
1015
- self.get('te')/1.602e-19,
1021
+ var,
1016
1022
  'Electron temperature [eV]',
1017
1023
  )
1018
1024
  self.lastfunc = self.plot_te
1019
1025
 
1020
1026
  def plot_ti(self):
1027
+ var = self.get('ti')/1.602e-19
1028
+ if self.buttonsetup:
1029
+ return var
1021
1030
  self.plot_driver(
1022
- self.get('ti')/1.602e-19,
1031
+ var,
1023
1032
  'Ion temperature [eV]',
1024
1033
  )
1025
1034
  self.lastfunc = self.plot_ti
1026
1035
 
1027
1036
  def plot_tg(self):
1037
+ var = self.get('tg')/1.602e-19
1038
+ if self.buttonsetup:
1039
+ return var
1028
1040
  self.plot_driver(
1029
- self.get('tg')/1.602e-19,
1041
+ var,
1030
1042
  'Gas temperature [eV]',
1031
1043
  'gas'
1032
1044
  )
1033
1045
  self.lastfunc = self.plot_tg
1034
1046
 
1035
1047
  def plot_ne(self):
1048
+ var = self.get('ne')
1049
+ if self.buttonsetup:
1050
+ return var
1036
1051
  self.plot_driver(
1037
- self.get('ne'),
1052
+ var,
1038
1053
  r'Electron density [m$\mathrm{{}^{-3}}$]',
1039
1054
  )
1040
1055
  self.lastfunc = self.plot_ne
1041
1056
 
1042
1057
  def plot_ni(self):
1058
+ var = self.get('ni')
1059
+ if self.buttonsetup:
1060
+ return var
1043
1061
  self.plot_driver(
1044
- self.get('ni'),
1062
+ var,
1045
1063
  r'Ion density [m$\mathrm{{}^{-3}}$]',
1046
1064
  'ion'
1047
1065
  )
1048
1066
  self.lastfunc = self.plot_ni
1049
1067
 
1050
1068
  def plot_ng(self):
1069
+ var = self.get('ng')
1070
+ if self.buttonsetup:
1071
+ return var
1051
1072
  self.plot_driver(
1052
- self.get('ng'),
1073
+ var,
1053
1074
  r'Gas density [m$\mathrm{{}^{-3}}$]',
1054
1075
  'gas'
1055
1076
  )
1056
1077
  self.lastfunc = self.plot_ng
1057
1078
 
1058
1079
  def plot_phi(self):
1080
+ var = self.get('phi')
1081
+ if self.buttonsetup:
1082
+ return var
1059
1083
  self.plot_driver(
1060
- self.get('phi'),
1084
+ var,
1061
1085
  'Electrical potential [V]',
1062
1086
  )
1063
1087
  self.lastfunc = self.plot_phi
1064
1088
 
1065
1089
  def plot_prad(self):
1090
+ var = self.get('prad')+self.get('pradhyd')
1091
+ if self.buttonsetup:
1092
+ return var
1066
1093
  self.plot_driver(
1067
- self.get('prad')+self.get('pradhyd'),
1094
+ var,
1068
1095
  r'Total radiated power [W/m$\mathrm{{}^{-3}}$]',
1069
1096
  )
1070
1097
  self.lastfunc = self.plot_prad
1071
1098
 
1072
1099
  def plot_pradhyd(self):
1100
+ var = self.get('pradhyd')
1101
+ if self.buttonsetup:
1102
+ return var
1073
1103
  self.plot_driver(
1074
- self.get('pradhyd'),
1104
+ var,
1075
1105
  r'Hydrogenic radiated power [W/m$\mathrm{{}^{-3}}$]',
1076
1106
  )
1077
1107
  self.lastfunc = self.plot_pradhyd
1078
1108
 
1079
1109
  def plot_pradimp(self):
1110
+ var = self.get('prad')
1111
+ if self.buttonsetup:
1112
+ return var
1080
1113
  self.plot_driver(
1081
- self.get('prad'),
1114
+ var,
1082
1115
  r'Impurity radiated power [W/m$\mathrm{{}^{-3}}$]',
1083
1116
  )
1084
1117
  self.lastfunc = self.plot_pradimp
1085
1118
 
1086
1119
  def plot_psorc(self):
1120
+ var = self.get('psorc')
1121
+ if self.buttonsetup:
1122
+ return var
1087
1123
  self.plot_driver(
1088
- self.get('psorc'),
1124
+ var,
1089
1125
  'Ion ionization source [parts/s]',
1090
1126
  'ion'
1091
1127
  )
1092
1128
  self.lastfunc = self.plot_psorc
1093
1129
 
1094
1130
  def plot_psorgc(self):
1131
+ var = self.get('psorgc')
1132
+ if self.buttonsetup:
1133
+ return var
1095
1134
  self.plot_driver(
1096
- self.get('psorgc'),
1135
+ var,
1097
1136
  'Gas ionization sink [parts/s]',
1098
1137
  'gas'
1099
1138
  )
1100
1139
  self.lastfunc = self.plot_psorgc
1101
1140
 
1102
1141
  def plot_psorxrc(self):
1142
+ var = self.get('psorxrc')
1143
+ if self.buttonsetup:
1144
+ return var
1103
1145
  self.plot_driver(
1104
- self.get('psorxrc'),
1146
+ var,
1105
1147
  'Ion recombination + CX sink [parts/s]',
1106
1148
  'ion'
1107
1149
  )
1108
1150
  self.lastfunc = self.plot_psorxrc
1109
1151
 
1110
1152
  def plot_psorrgc(self):
1153
+ var = self.get('psorrgc')
1154
+ if self.buttonsetup:
1155
+ return var
1111
1156
  self.plot_driver(
1112
- self.get('psorrgc'),
1157
+ var,
1113
1158
  'Gas recombination source [parts/s]',
1114
1159
  'gas'
1115
1160
  )
1116
1161
  self.lastfunc = self.plot_psorrgc
1117
1162
 
1118
1163
  def plot_psorcxg(self):
1164
+ var = self.get('psorcxg')
1165
+ if self.buttonsetup:
1166
+ return var
1119
1167
  self.plot_driver(
1120
- self.get('psorcxg'),
1168
+ var,
1121
1169
  'Gas CX source [parts/s]',
1122
1170
  'gas'
1123
1171
  )
@@ -1656,10 +1704,11 @@ class MainMenu(QMainWindow):
1656
1704
  def openHDF5(self):#, caseobj=None):
1657
1705
  from uetools import Case
1658
1706
  # Logic for opening an existing file goes here...
1659
- if 1==0:
1707
+ if 1==1:
1660
1708
  file = QFileDialog.getOpenFileName(self, 'Open UETOOLS save',
1661
- self.lastpath, "All files (*.*)")[0]
1662
- self.lastpath = "/".join(file.split("/")[:-1])
1709
+ self.lastpath, "All files (*.*)", options=QFileDialog.DontUseNativeDialog)[0]
1710
+ self.lastpath = "/".join(file.split("/")[:-1],
1711
+ )
1663
1712
  else:
1664
1713
  file = "/Users/holm10/Documents/fusion/uedge/src/"+\
1665
1714
  "UETOOLS/dashboard_test/testcase_hires/nc20.hdf5"
@@ -1691,7 +1740,9 @@ class MainMenu(QMainWindow):
1691
1740
  )
1692
1741
  print("USING TEST DATABASE")
1693
1742
  else:
1694
- path = str(QFileDialog.getExistingDirectory(self, "Select Directory"))
1743
+ path = str(QFileDialog.getExistingDirectory(self, "Select Directory",
1744
+ options=QFileDialog.DontUseNativeDialog
1745
+ ))
1695
1746
  if len(path) == 0:
1696
1747
  return
1697
1748
  name = path.split('/')[-1]
@@ -1856,7 +1907,7 @@ if __name__ == "__main__":
1856
1907
  matplotlib.use('Qt5Agg')
1857
1908
  app = QApplication(sys.argv)
1858
1909
  win = MainMenu()
1859
- win.openHDF5()
1910
+ # win.openHDF5()
1860
1911
  win.show()
1861
1912
  sys.exit(app.exec_())
1862
1913
  #else:
@@ -0,0 +1 @@
1
+ 1.3.3rc2
@@ -1 +0,0 @@
1
- 1.3.2
File without changes
File without changes
File without changes
File without changes
File without changes