@@ -1,12 +1,20 | |||||
1 | Prerequisites: |
|
1 | Prerequisites: | |
2 |
|
2 | |||
3 | -numpy 1.8.0 |
|
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 | Signal Chain Installation: |
|
13 | Signal Chain Installation: | |
7 |
|
14 | |||
8 | 1. Install numpy, matplotlib, TKAgg |
|
15 | 1. Install numpy, matplotlib, TKAgg | |
9 |
2. Install digital_rf_hdf5 module (developed by Haystack Observatory) |
|
16 | 2. Install digital_rf_hdf5 module (developed by Haystack Observatory) | |
|
17 | if you want to use USRP data | |||
10 | 3. untar schainpy-x.x.x.tar.gz |
|
18 | 3. untar schainpy-x.x.x.tar.gz | |
11 | 4. cd schainpy-x.x.x |
|
19 | 4. cd schainpy-x.x.x | |
12 | 5. execute: |
|
20 | 5. execute: |
@@ -4,3 +4,4 Created on Feb 7, 2012 | |||||
4 | @author $Author$ |
|
4 | @author $Author$ | |
5 | @version $Id$ |
|
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 | self.stopProject() |
|
167 | self.stopProject() | |
168 |
|
168 | |||
|
169 | @pyqtSignature("") | |||
|
170 | def on_actionAbout_triggered(self): | |||
|
171 | """ | |||
|
172 | """ | |||
|
173 | self.aboutEvent() | |||
|
174 | ||||
169 | @pyqtSignature("") |
|
175 | @pyqtSignature("") | |
170 | def on_actionFTP_triggered(self): |
|
176 | def on_actionFTP_triggered(self): | |
171 | """ |
|
177 | """ | |
@@ -5683,36 +5689,3 class ShowMeConsole(QtCore.QObject): | |||||
5683 | textWritten = QtCore.pyqtSignal(str) |
|
5689 | textWritten = QtCore.pyqtSignal(str) | |
5684 | def write (self, text): |
|
5690 | def write (self, text): | |
5685 | self.textWritten.emit(str(text)) |
|
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 | import os |
|
17 | import os | |
18 | from schainpy.gui.figures import tools |
|
18 | from schainpy.gui.figures import tools | |
|
19 | from schainpy import __version__ | |||
19 |
|
20 | |||
20 |
INITIAL_MSG = "Signal Chain GUI - v |
|
21 | INITIAL_MSG = "Signal Chain GUI - v%s" %__version__ | |
21 | FIGURES_PATH = tools.get_path() |
|
22 | FIGURES_PATH = tools.get_path() | |
22 |
|
23 | |||
23 | class Ui_InitWindow(object): |
|
24 | class Ui_InitWindow(object): |
@@ -26,6 +26,7 except AttributeError: | |||||
26 |
|
26 | |||
27 | import os |
|
27 | import os | |
28 | from schainpy.gui.figures import tools |
|
28 | from schainpy.gui.figures import tools | |
|
29 | from schainpy import __version__ | |||
29 |
|
30 | |||
30 | FIGURES_PATH = tools.get_path() |
|
31 | FIGURES_PATH = tools.get_path() | |
31 |
|
32 | |||
@@ -58,6 +59,8 class Ui_EnvWindow(object): | |||||
58 |
|
59 | |||
59 | def setupUi(self, MainWindow): |
|
60 | def setupUi(self, MainWindow): | |
60 |
|
61 | |||
|
62 | self.paused=False | |||
|
63 | ||||
61 | MainWindow.setObjectName(_fromUtf8("MainWindow")) |
|
64 | MainWindow.setObjectName(_fromUtf8("MainWindow")) | |
62 | MainWindow.resize(1200, 800) |
|
65 | MainWindow.resize(1200, 800) | |
63 |
|
66 | |||
@@ -156,6 +159,7 class Ui_EnvWindow(object): | |||||
156 | self.actionStop.setObjectName(_fromUtf8("actionStop")) |
|
159 | self.actionStop.setObjectName(_fromUtf8("actionStop")) | |
157 | self.actionAbout = QtGui.QAction(MainWindow) |
|
160 | self.actionAbout = QtGui.QAction(MainWindow) | |
158 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) |
|
161 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) | |
|
162 | ||||
159 | self.actionOpenToolbar = QtGui.QAction(MainWindow) |
|
163 | self.actionOpenToolbar = QtGui.QAction(MainWindow) | |
160 | self.actionOpenToolbar.setIcon(iconOpen) |
|
164 | self.actionOpenToolbar.setIcon(iconOpen) | |
161 | self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar")) |
|
165 | self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar")) | |
@@ -195,7 +199,6 class Ui_EnvWindow(object): | |||||
195 | self.toolBar.addAction(self.actionStopToolbar) |
|
199 | self.toolBar.addAction(self.actionStopToolbar) | |
196 | self.toolBar.addSeparator() |
|
200 | self.toolBar.addSeparator() | |
197 |
|
201 | |||
198 | self.paused=False |
|
|||
199 | self.actionPause.triggered.connect(self.changePauseIcon) |
|
202 | self.actionPause.triggered.connect(self.changePauseIcon) | |
200 | self.actionPauseToolbar.triggered.connect(self.changePauseIcon) |
|
203 | self.actionPauseToolbar.triggered.connect(self.changePauseIcon) | |
201 |
|
204 | |||
@@ -235,7 +238,7 class Ui_EnvWindow(object): | |||||
235 | self.actionStart.setText(_translate("MainWindow", "Start", None)) |
|
238 | self.actionStart.setText(_translate("MainWindow", "Start", None)) | |
236 | self.actionPause.setText(_translate("MainWindow", "Pause", None)) |
|
239 | self.actionPause.setText(_translate("MainWindow", "Pause", None)) | |
237 | self.actionStop.setText(_translate("MainWindow", "Stop", None)) |
|
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 | self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None)) |
|
242 | self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None)) | |
240 | self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open a project", None)) |
|
243 | self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open a project", None)) | |
241 | self.actionCreateToolbar.setText(_translate("MainWindow", "createToolbar", None)) |
|
244 | self.actionCreateToolbar.setText(_translate("MainWindow", "createToolbar", None)) | |
@@ -260,6 +263,14 class Ui_EnvWindow(object): | |||||
260 | event.accept() |
|
263 | event.accept() | |
261 | else: |
|
264 | else: | |
262 | event.ignore() |
|
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 | class Ui_BasicWindow(Ui_EnvWindow, Ui_ProjectTab, Ui_VoltageTab, Ui_SpectraTab, Ui_SpectraHeisTab, Ui_CorrelationTab): |
|
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 | from distutils.core import setup, Extension |
|
7 | from distutils.core import setup, Extension | |
|
8 | from schainpy import __version__ | |||
8 |
|
9 | |||
9 | setup(name="schainpy", |
|
10 | setup(name="schainpy", | |
10 |
version= |
|
11 | version=__version__, | |
11 | description="Python tools to read, write and process Jicamarca data", |
|
12 | description="Python tools to read, write and process Jicamarca data", | |
12 | author="Miguel Urco", |
|
13 | author="Miguel Urco", | |
13 | author_email="miguel.urco@jro.igp.gob.pe", |
|
14 | author_email="miguel.urco@jro.igp.gob.pe", |
General Comments 0
You need to be logged in to leave comments.
Login now