Skip to content

Commit

Permalink
added info to about window
Browse files Browse the repository at this point in the history
  • Loading branch information
jwebster-LANL committed Dec 5, 2023
1 parent c2bd272 commit 726e8a2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
12 changes: 8 additions & 4 deletions InfraView/widgets/IPApplicationWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, qApp, progname, progversion):

# initialize the multiproccessor pool
self.mp_pool = mp.ProcessingPool(cpu_count() - 1)
print("cpu count = {}".format(cpu_count()))
#print("cpu count = {}".format(cpu_count()))

self.buildUI()

Expand Down Expand Up @@ -595,19 +595,23 @@ def __init__(self, progname, progversion):
def buildUI(self, name, version):
self.setWindowTitle("InfraView: About")

info_label = QLabel(name + '\nVersion: ' + version + '\nCopyright 2018 Los Alamos National Laboratory\n')
info_label = QLabel('\n' + name + '\nVersion: ' + version + '\nCopyright 2018 Los Alamos National Laboratory\n')
label_font = info_label.font()
label_font.setPixelSize(14)
label_font.setPixelSize(12)
info_label.setFont(label_font)

image_path = Path(Path(__file__).parent.parent.parent, 'infrapy', 'resources', 'PNG', 'LANL_Logo_Ultramarine.png')
logo_pixmap = QPixmap(str(image_path))
logo_label = QLabel(self)
logo_label.setPixmap(logo_pixmap)

cpu_label = QLabel('Total CPU Count: ' + str(cpu_count()) + '\nCPUs Used: ' + str(cpu_count() -1))
cpu_label.setFont(label_font)

layout = QVBoxLayout()
layout.addWidget(info_label)
layout.addWidget(logo_label)
layout.addWidget(info_label)
layout.addWidget(cpu_label)
self.setLayout(layout)


Expand Down
20 changes: 13 additions & 7 deletions InfraView/widgets/IPPlotItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,7 @@ class IPPlotItem(pg.PlotItem):
sigSignalRegionChanged = pyqtSignal(tuple)
sigFreqRegionChanged = pyqtSignal(tuple)

noise_region = None
signal_region = None
freq_region = None

pickable = False

labi = None


def __init__(self, mode='plain', y_label_format=None, pickable=False, est=None):
'''
Expand All @@ -100,6 +94,14 @@ def __init__(self, mode='plain', y_label_format=None, pickable=False, est=None):
pickable: (bool) Can you click on plot to make a pick
'''

self.noise_region = None
self.signal_region = None
self.freq_region = None

self.pickable = False

self.labi = None

if y_label_format == 'nonscientific':
super().__init__(axisItems={'left': NonScientific(orientation='left')})
else:
Expand All @@ -114,6 +116,10 @@ def __init__(self, mode='plain', y_label_format=None, pickable=False, est=None):
else:
super().__init__()

#self.autoDownsample = True
#self.setDownsampling(auto=True, ds=1000)
self.setClipToView(True)

# this will tell the widget if you can click on it and generate a 'pick'
self.pickable = pickable

Expand Down

0 comments on commit 726e8a2

Please sign in to comment.