##// END OF EJS Templates
About window was added to SChainGUI...
Miguel Valdez -
r642:c6531a7a640a
parent child
Show More
@@ -1,12 +1,20
1 1 Prerequisites:
2 2
3 3 -numpy 1.8.0
4 -
4 -scipy
5 -math
6 -matplotlib
7 -h5py
8 -ftplib
9 -paramiko and scp (optional for using SendTFilesToServer)
10 -stuffr (optional for using jroIO_hf)
11 -PyQt4 (for using GUI)
5 12
6 13 Signal Chain Installation:
7 14
8 15 1. Install numpy, matplotlib, TKAgg
9 2. Install digital_rf_hdf5 module (developed by Haystack Observatory) if you will use USRP data
16 2. Install digital_rf_hdf5 module (developed by Haystack Observatory)
17 if you want to use USRP data
10 18 3. untar schainpy-x.x.x.tar.gz
11 19 4. cd schainpy-x.x.x
12 20 5. execute:
@@ -4,3 +4,4 Created on Feb 7, 2012
4 4 @author $Author$
5 5 @version $Id$
6 6 '''
7 __version__ = "2.1.5.1" No newline at end of file
@@ -165,7 +165,13 class BasicWindow(QMainWindow, Ui_BasicWindow):
165 165 """
166 166 """
167 167 self.stopProject()
168
168
169 @pyqtSignature("")
170 def on_actionAbout_triggered(self):
171 """
172 """
173 self.aboutEvent()
174
169 175 @pyqtSignature("")
170 176 def on_actionFTP_triggered(self):
171 177 """
@@ -5683,36 +5689,3 class ShowMeConsole(QtCore.QObject):
5683 5689 textWritten = QtCore.pyqtSignal(str)
5684 5690 def write (self, text):
5685 5691 self.textWritten.emit(str(text))
5686
5687 class PlotManager():
5688 def __init__(self, queue):
5689 self.queue = queue
5690 self.objPlotDict = {}
5691
5692 def processIncoming(self):
5693 while self.queue.qsize():
5694 try:
5695 dataFromQueue = self.queue.get(True)
5696 if dataFromQueue == None:
5697 continue
5698
5699 dataPlot = dataFromQueue['data']
5700 kwargs = dataFromQueue['kwargs']
5701 id = kwargs['id']
5702 if 'channelList' in kwargs.keys():
5703 channelList = kwargs['channelList']
5704 else:
5705 channelList = None
5706 plotname = kwargs.pop('type')
5707
5708 if not(id in self.objPlotDict.keys()):
5709 className = eval(plotname)
5710 self.objPlotDict[id] = className(id, channelList, dataPlot)
5711 self.objPlotDict[id].show()
5712
5713 self.objPlotDict[id].run(dataPlot , **kwargs)
5714
5715 except Queue.Empty:
5716 pass
5717
5718
@@ -16,8 +16,9 except AttributeError:
16 16
17 17 import os
18 18 from schainpy.gui.figures import tools
19 from schainpy import __version__
19 20
20 INITIAL_MSG = "Signal Chain GUI - v2.1.5"
21 INITIAL_MSG = "Signal Chain GUI - v%s" %__version__
21 22 FIGURES_PATH = tools.get_path()
22 23
23 24 class Ui_InitWindow(object):
@@ -26,6 +26,7 except AttributeError:
26 26
27 27 import os
28 28 from schainpy.gui.figures import tools
29 from schainpy import __version__
29 30
30 31 FIGURES_PATH = tools.get_path()
31 32
@@ -58,6 +59,8 class Ui_EnvWindow(object):
58 59
59 60 def setupUi(self, MainWindow):
60 61
62 self.paused=False
63
61 64 MainWindow.setObjectName(_fromUtf8("MainWindow"))
62 65 MainWindow.resize(1200, 800)
63 66
@@ -156,6 +159,7 class Ui_EnvWindow(object):
156 159 self.actionStop.setObjectName(_fromUtf8("actionStop"))
157 160 self.actionAbout = QtGui.QAction(MainWindow)
158 161 self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
162
159 163 self.actionOpenToolbar = QtGui.QAction(MainWindow)
160 164 self.actionOpenToolbar.setIcon(iconOpen)
161 165 self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar"))
@@ -195,7 +199,6 class Ui_EnvWindow(object):
195 199 self.toolBar.addAction(self.actionStopToolbar)
196 200 self.toolBar.addSeparator()
197 201
198 self.paused=False
199 202 self.actionPause.triggered.connect(self.changePauseIcon)
200 203 self.actionPauseToolbar.triggered.connect(self.changePauseIcon)
201 204
@@ -235,7 +238,7 class Ui_EnvWindow(object):
235 238 self.actionStart.setText(_translate("MainWindow", "Start", None))
236 239 self.actionPause.setText(_translate("MainWindow", "Pause", None))
237 240 self.actionStop.setText(_translate("MainWindow", "Stop", None))
238 self.actionAbout.setText(_translate("MainWindow", "About", None))
241 self.actionAbout.setText(_translate("MainWindow", "About SChain", None))
239 242 self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None))
240 243 self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open a project", None))
241 244 self.actionCreateToolbar.setText(_translate("MainWindow", "createToolbar", None))
@@ -260,6 +263,14 class Ui_EnvWindow(object):
260 263 event.accept()
261 264 else:
262 265 event.ignore()
266
267 def aboutEvent(self):
268
269 reply = QtGui.QMessageBox.information(self,
270 'About',
271 "Signal Chain Processing Software v%s" %__version__,
272 "Developed by Jicamarca Radio Observatory\nComments to miguel.urco@jro.igp.gob.pe")
273
263 274
264 275 class Ui_BasicWindow(Ui_EnvWindow, Ui_ProjectTab, Ui_VoltageTab, Ui_SpectraTab, Ui_SpectraHeisTab, Ui_CorrelationTab):
265 276
@@ -5,9 +5,10 Created on Jul 16, 2014
5 5 '''
6 6
7 7 from distutils.core import setup, Extension
8 from schainpy import __version__
8 9
9 10 setup(name="schainpy",
10 version="2.1.5",
11 version=__version__,
11 12 description="Python tools to read, write and process Jicamarca data",
12 13 author="Miguel Urco",
13 14 author_email="miguel.urco@jro.igp.gob.pe",
General Comments 0
You need to be logged in to leave comments. Login now