##// END OF EJS Templates
setup con console_scripts y log.py sin pass
José Chávez -
r1042:9b29f3bc90b3
parent child
Show More
@@ -2,15 +2,28
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,26 +17,20 SCHAINPY - LOG
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):
@@ -42,11 +42,15 setup(name="schainpy",
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=[
General Comments 0
You need to be logged in to leave comments. Login now