@@ -1,96 +1,109 | |||
|
1 | 1 | ## CHANGELOG: |
|
2 | 2 | |
|
3 | 3 | ### 2.3 |
|
4 | 4 | * Added high order function `multiSchain` for multiprocessing scripts. |
|
5 | * Added a new graphics processing unit `PlotterReceiver`. It is decoupled from normal processing sequence with support for data generated by multiprocessing scripts. | |
|
5 | * Added two new Processing Units `PublishData` and `ReceiverData` for receiving and sending dataOut through multiple ways (tcp, ipc, inproc). | |
|
6 | * Added a new graphics Processing Unit `PlotterReceiver`. It is decoupled from normal processing sequence with support for data generated by multiprocessing scripts. | |
|
7 | * Added support for sending realtime graphic to web server. | |
|
8 | * GUI command `schain` is now `schainGUI`. | |
|
6 | 9 | * Added a CLI tool named `schain`. |
|
7 | * Command for GUI is now `schainGUI`. | |
|
10 | * Scripts templates can be now generated with `schain generate`. | |
|
11 | * Now it is possible to search Processing Units and Operations with `schain search [module]` to get the right name and its allowed parameters. | |
|
12 | * `schain xml` to run xml scripts. | |
|
8 | 13 | * Added suggestions when parameters are poorly written. |
|
9 | 14 | * `Controller.start()` now runs in a different process than the process calling it. |
|
15 | * Added `schainpy.utils.log` for log standarization. | |
|
16 | * Running script on online mode no longer ignores date and hour. Issue #1109. | |
|
17 | * Added support for receving voltage data directly from JARS (tcp, ipc). | |
|
18 | * Updated README for MAC OS GUI installation. | |
|
19 | * Setup now installs numpy. | |
|
10 | 20 | |
|
11 | 21 | ### 2.2.6 |
|
12 | * Graphics generated by the GUI are now the same as generated by scripts. Issue #1074 | |
|
22 | * Graphics generated by the GUI are now the same as generated by scripts. Issue #1074. | |
|
23 | * Added support for C extensions. | |
|
24 | * function `hildebrand_sehkon` optimized with a C wrapper. | |
|
13 | 25 | * Numpy version updated. |
|
26 | * Migration to GIT. | |
|
14 | 27 | |
|
15 | 28 | ### 2.2.5: |
|
16 | 29 | * splitProfiles and combineProfiles modules were added to VoltageProc and Signal Chain GUI. |
|
17 | 30 | * nProfiles of USRP data (hdf5) is the number of profiles thera are in one second. |
|
18 | 31 | * jroPlotter works directly with data objects instead of dictionaries |
|
19 | 32 | * script "schain" was added to Signal Chain installer |
|
20 | 33 | |
|
21 | 34 | ### 2.2.4.1: |
|
22 | 35 | * jroIO_usrp.py is update to read Sandra's data |
|
23 | 36 | * decimation in Spectra and RTI plots is always enabled. |
|
24 | 37 | * time* window option added to GUI |
|
25 | 38 | |
|
26 | 39 | ### 2.2.4: |
|
27 | 40 | * jroproc_spectra_lags.py added to schainpy |
|
28 | 41 | * Bug fixed in schainGUI: ProcUnit was created with the same id in some cases. |
|
29 | 42 | * Bug fixed in jroHeaderIO: Header size validation. |
|
30 | 43 | |
|
31 | 44 | ### 2.2.3.1: |
|
32 | 45 | * Filtering block by time has been added. |
|
33 | 46 | * Bug fixed plotting RTI, CoherenceMap and others using xmin and xmax parameters. The first day worked |
|
34 | 47 | properly but the next days did not. |
|
35 | 48 | |
|
36 | 49 | ### 2.2.3: |
|
37 | 50 | * Bug fixed in GUI: Error getting(reading) Code value |
|
38 | 51 | * Bug fixed in GUI: Flip option always needs channelList field |
|
39 | 52 | * Bug fixed in jrodata: when one branch modified a value in "dataOut" (example: dataOut.code) this value |
|
40 | 53 | was modified for every branch (because this was a reference). It was modified in data.copy() |
|
41 | 54 | * Bug fixed in jroproc_voltage.profileSelector(): rangeList replaces to profileRangeList. |
|
42 | 55 | |
|
43 | 56 | ### 2.2.2: |
|
44 | 57 | * VoltageProc: ProfileSelector, Reshape, Decoder with nTxs!=1 and getblock=True was tested |
|
45 | 58 | * Rawdata and testRawdata.py added to Signal Chain project |
|
46 | 59 | |
|
47 | 60 | ### 2.2.1: |
|
48 | 61 | * Bugs fixed in GUI |
|
49 | 62 | * Views were improved in GUI |
|
50 | 63 | * Support to MST* ISR experiments |
|
51 | 64 | * Bug fixed getting noise using hyldebrant. (minimum number of points > 20%) |
|
52 | 65 | * handleError added to jroplotter.py |
|
53 | 66 | |
|
54 | 67 | ### 2.2.0: |
|
55 | 68 | * GUI: use of external plotter |
|
56 | 69 | * Compatible with matplotlib 1.5.0 |
|
57 | 70 | |
|
58 | 71 | ### 2.1.5: |
|
59 | 72 | * serializer module added to Signal Chain |
|
60 | 73 | * jroplotter.py added to Signal Chain |
|
61 | 74 | |
|
62 | 75 | ### 2.1.4.2: |
|
63 | 76 | * A new Plotter Class was added |
|
64 | 77 | * Project.start() does not accept filename as a parameter anymore |
|
65 | 78 | |
|
66 | 79 | ### 2.1.4.1: |
|
67 | 80 | * Send notifications when an error different to ValueError is detected |
|
68 | 81 | |
|
69 | 82 | ### 2.1.4: |
|
70 | 83 | * Sending error notifications to signal chain administrator |
|
71 | 84 | * Login to email server added |
|
72 | 85 | |
|
73 | 86 | ### 2.1.3.3: |
|
74 | 87 | * Colored Button Icons were added to GUI |
|
75 | 88 | |
|
76 | 89 | ### 2.1.3.2: |
|
77 | 90 | * GUI: user interaction enhanced |
|
78 | 91 | * controller_api.py: Safe access to ControllerThead |
|
79 | 92 | |
|
80 | 93 | ### 2.1.3.1: |
|
81 | 94 | * GUI: every icon were resized |
|
82 | 95 | * jroproc_voltage.py: Print a message when "Read from code" option is selected and the code is not defined inside data file |
|
83 | 96 | |
|
84 | 97 | ### 2.1.3: |
|
85 | 98 | * jroplot_heispectra.py: SpectraHeisScope was not showing the right channels |
|
86 | 99 | * jroproc_voltage.py: Bug fixed selecting profiles (self.nProfiles took a wrong value), |
|
87 | 100 | Bug fixed selecting heights by block (selecting profiles instead heights) |
|
88 | 101 | * jroproc_voltage.py: New feature added: decoding data by block using FFT. |
|
89 | 102 | * jroIO_heispectra.py: Bug fixed in FitsReader. Using local Fits instance instead schainpy.mode.data.jrodata.Fits. |
|
90 | 103 | * jroIO_heispectra.py: Channel index list does not exist. |
|
91 | 104 | |
|
92 | 105 | ### 2.1.2: |
|
93 | 106 | * jroutils_ftp.py: Bug fixed, Any error sending file stopped the Server Thread |
|
94 | 107 | Server thread opens and closes remote server each time file list is sent |
|
95 | 108 | * jroplot_spectra.py: Noise path was not being created when noise data is saved. |
|
96 | 109 | * jroIO_base.py: startTime can be greater than endTime. Example: SpreadF [18:00 * 07:00] No newline at end of file |
@@ -1,45 +1,39 | |||
|
1 | 1 | """. |
|
2 | 2 | SCHAINPY - LOG |
|
3 | 3 | Simple helper for log standarization |
|
4 | 4 | Usage: |
|
5 | 5 | from schainpy.utils import log |
|
6 | 6 | log.error('A kitten died beacuse of you') |
|
7 | 7 | log.warning('You are doing it wrong but what the heck, I'll allow it) |
|
8 | 8 | log.succes('YOU ROCK!') |
|
9 | 9 | To create your own logger inside your class do it like this: |
|
10 | 10 | from schainpy.utils import log |
|
11 | 11 | awesomeLogger = log.makelogger("never gonna", bg="red", fg="white") |
|
12 | 12 | awesomeLogger('give you up') |
|
13 | 13 | which will look like this: |
|
14 | 14 | [NEVER GONNA] - give you up |
|
15 | 15 | with color red as background and white as foreground. |
|
16 | 16 | """ |
|
17 | 17 | |
|
18 | 18 | import click |
|
19 | 19 | |
|
20 | ||
|
21 | 20 | def warning(message): |
|
22 | 21 | click.echo(click.style('[WARNING] - ' + message, fg='yellow')) |
|
23 | pass | |
|
24 | 22 | |
|
25 | 23 | |
|
26 | 24 | def error(message): |
|
27 | click.echo(click.style('[ERROR] - ' + message, fg='red')) | |
|
28 | pass | |
|
25 | click.echo(click.style('[ERROR] - ' + message, fg='red', bg='black')) | |
|
29 | 26 | |
|
30 | 27 | |
|
31 | 28 | def success(message): |
|
32 | 29 | click.echo(click.style(message, fg='green')) |
|
33 | pass | |
|
34 | ||
|
35 | 30 | |
|
36 | def log(message): | |
|
37 | click.echo('[LOG] - ' + message) | |
|
38 | pass | |
|
39 | 31 | |
|
32 | def log(message, topic='LOG'): | |
|
33 | click.echo('[{}] - {}'.format(topic, message)) | |
|
40 | 34 | |
|
41 | 35 | def makelogger(topic, bg='reset', fg='reset'): |
|
42 | 36 | def func(message): |
|
43 | 37 | click.echo(click.style('[{}] - '.format(topic.upper()) + message, |
|
44 | 38 | bg=bg, fg=fg)) |
|
45 | 39 | return func |
@@ -1,65 +1,69 | |||
|
1 | 1 | ''' |
|
2 | 2 | Created on Jul 16, 2014 |
|
3 | 3 | |
|
4 | 4 | @author: Miguel Urco |
|
5 | 5 | ''' |
|
6 | 6 | |
|
7 | 7 | from setuptools import setup, Extension |
|
8 | 8 | from setuptools.command.build_ext import build_ext as _build_ext |
|
9 | 9 | from schainpy import __version__ |
|
10 | 10 | |
|
11 | 11 | class build_ext(_build_ext): |
|
12 | 12 | def finalize_options(self): |
|
13 | 13 | _build_ext.finalize_options(self) |
|
14 | 14 | # Prevent numpy from thinking it is still in its setup process: |
|
15 | 15 | __builtins__.__NUMPY_SETUP__ = False |
|
16 | 16 | import numpy |
|
17 | 17 | self.include_dirs.append(numpy.get_include()) |
|
18 | 18 | |
|
19 | 19 | |
|
20 | 20 | setup(name="schainpy", |
|
21 | 21 | version=__version__, |
|
22 | 22 | description="Python tools to read, write and process Jicamarca data", |
|
23 | 23 | author="Miguel Urco", |
|
24 | 24 | author_email="miguel.urco@jro.igp.gob.pe", |
|
25 | 25 | url="http://jro.igp.gob.pe", |
|
26 | 26 | packages = {'schainpy', |
|
27 | 27 | 'schainpy.model', |
|
28 | 28 | 'schainpy.model.data', |
|
29 | 29 | 'schainpy.model.graphics', |
|
30 | 30 | 'schainpy.model.io', |
|
31 | 31 | 'schainpy.model.proc', |
|
32 | 32 | 'schainpy.model.serializer', |
|
33 | 33 | 'schainpy.model.utils', |
|
34 | 34 | 'schainpy.gui', |
|
35 | 35 | 'schainpy.gui.figures', |
|
36 | 36 | 'schainpy.gui.viewcontroller', |
|
37 | 37 | 'schainpy.gui.viewer', |
|
38 | 38 | 'schainpy.gui.viewer.windows'}, |
|
39 | 39 | ext_package='schainpy', |
|
40 | 40 | py_modules=[''], |
|
41 | 41 | package_data={'': ['schain.conf.template'], |
|
42 | 42 | 'schainpy.gui.figures': ['*.png','*.jpg'], |
|
43 | 43 | }, |
|
44 | 44 | include_package_data=False, |
|
45 | scripts =['schainpy/gui/schainGUI', | |
|
46 | 'schainpy/scripts/schain'], | |
|
45 | scripts =['schainpy/gui/schainGUI'], | |
|
47 | 46 | ext_modules=[ |
|
48 | 47 | Extension("cSchain", ["schainpy/model/proc/extensions.c"] |
|
49 | 48 | )], |
|
49 | entry_points={ | |
|
50 | 'console_scripts': [ | |
|
51 | 'schain = schaincli.cli:main', | |
|
52 | ], | |
|
53 | }, | |
|
50 | 54 | cmdclass={'build_ext':build_ext}, |
|
51 | 55 | setup_requires=["numpy >= 1.11.2"], |
|
52 | 56 | install_requires=[ |
|
53 | 57 | "scipy >= 0.14.0", |
|
54 | 58 | "h5py >= 2.2.1", |
|
55 | 59 | "matplotlib >= 1.4.2", |
|
56 | 60 | "pyfits >= 3.4", |
|
57 | 61 | "paramiko >= 2.1.2", |
|
58 | 62 | "paho-mqtt >= 1.2", |
|
59 | 63 | "zmq", |
|
60 | 64 | "fuzzywuzzy", |
|
61 | 65 | "click", |
|
62 | 66 | "colorama", |
|
63 | 67 | "python-Levenshtein" |
|
64 | 68 | ], |
|
65 | 69 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now