From 9b29f3bc90b3eeb2186e9a2967709fabcced2e28 2017-09-18 22:17:20 From: José Chávez Date: 2017-09-18 22:17:20 Subject: [PATCH] setup con console_scripts y log.py sin pass --- diff --git a/schainpy/CHANGELOG.md b/schainpy/CHANGELOG.md index 735b220..e2ae29a 100644 --- a/schainpy/CHANGELOG.md +++ b/schainpy/CHANGELOG.md @@ -2,15 +2,28 @@ ### 2.3 * Added high order function `multiSchain` for multiprocessing scripts. -* Added a new graphics processing unit `PlotterReceiver`. It is decoupled from normal processing sequence with support for data generated by multiprocessing scripts. +* Added two new Processing Units `PublishData` and `ReceiverData` for receiving and sending dataOut through multiple ways (tcp, ipc, inproc). +* Added a new graphics Processing Unit `PlotterReceiver`. It is decoupled from normal processing sequence with support for data generated by multiprocessing scripts. +* Added support for sending realtime graphic to web server. +* GUI command `schain` is now `schainGUI`. * Added a CLI tool named `schain`. -* Command for GUI is now `schainGUI`. + * Scripts templates can be now generated with `schain generate`. + * Now it is possible to search Processing Units and Operations with `schain search [module]` to get the right name and its allowed parameters. + * `schain xml` to run xml scripts. * Added suggestions when parameters are poorly written. * `Controller.start()` now runs in a different process than the process calling it. +* Added `schainpy.utils.log` for log standarization. +* Running script on online mode no longer ignores date and hour. Issue #1109. +* Added support for receving voltage data directly from JARS (tcp, ipc). +* Updated README for MAC OS GUI installation. +* Setup now installs numpy. ### 2.2.6 -* Graphics generated by the GUI are now the same as generated by scripts. Issue #1074 +* Graphics generated by the GUI are now the same as generated by scripts. Issue #1074. +* Added support for C extensions. +* function `hildebrand_sehkon` optimized with a C wrapper. * Numpy version updated. +* Migration to GIT. ### 2.2.5: * splitProfiles and combineProfiles modules were added to VoltageProc and Signal Chain GUI. diff --git a/schainpy/utils/log.py b/schainpy/utils/log.py index 85f1489..8dec425 100644 --- a/schainpy/utils/log.py +++ b/schainpy/utils/log.py @@ -17,26 +17,20 @@ SCHAINPY - LOG import click - def warning(message): click.echo(click.style('[WARNING] - ' + message, fg='yellow')) - pass def error(message): - click.echo(click.style('[ERROR] - ' + message, fg='red')) - pass + click.echo(click.style('[ERROR] - ' + message, fg='red', bg='black')) def success(message): click.echo(click.style(message, fg='green')) - pass - -def log(message): - click.echo('[LOG] - ' + message) - pass +def log(message, topic='LOG'): + click.echo('[{}] - {}'.format(topic, message)) def makelogger(topic, bg='reset', fg='reset'): def func(message): diff --git a/setup.py b/setup.py index cb79d6d..be416d7 100644 --- a/setup.py +++ b/setup.py @@ -42,11 +42,15 @@ setup(name="schainpy", 'schainpy.gui.figures': ['*.png','*.jpg'], }, include_package_data=False, - scripts =['schainpy/gui/schainGUI', - 'schainpy/scripts/schain'], + scripts =['schainpy/gui/schainGUI'], ext_modules=[ Extension("cSchain", ["schainpy/model/proc/extensions.c"] )], + entry_points={ + 'console_scripts': [ + 'schain = schaincli.cli:main', + ], + }, cmdclass={'build_ext':build_ext}, setup_requires=["numpy >= 1.11.2"], install_requires=[