##// END OF EJS Templates
Move schaincli to schainpy.cli
Juan C. Espinoza -
r1113:f2689c814816
parent child
Show More
1 NO CONTENT: file renamed from schaincli/README.md to schainpy/cli/README.md
1 NO CONTENT: file renamed from schaincli/__init__.py to schainpy/cli/__init__.py
@@ -7,7 +7,6 import glob
7 7 save_stdout = sys.stdout
8 8 sys.stdout = open('trash', 'w')
9 9 from multiprocessing import cpu_count
10 from schaincli import templates
11 10 from schainpy.controller import Project
12 11 from schainpy.model import Operation, ProcessingUnit
13 12 from schainpy.utils import log
@@ -15,6 +14,7 from importlib import import_module
15 14 from pydoc import locate
16 15 from fuzzywuzzy import process
17 16 from schainpy.utils import paramsFinder
17 import templates
18 18 sys.stdout = save_stdout
19 19
20 20
1 NO CONTENT: file renamed from schaincli/templates.py to schainpy/cli/templates.py
1 NO CONTENT: file renamed from schaincli/tests/__init__.py to schainpy/cli/tests/__init__.py
@@ -1,6 +1,6
1 1 import pytest
2 2 from click.testing import CliRunner
3 from schaincli import cli
3 from schainpy.cli import cli
4 4
5 5
6 6 @pytest.fixture
@@ -11,7 +11,6 except:
11 11 'You should install PyQt4 module in order to run the GUI. See the README.')
12 12 sys.exit()
13 13
14
15 14 from schainpy.gui.viewcontroller.initwindow import InitWindow
16 15 from schainpy.gui.viewcontroller.basicwindow import BasicWindow
17 16 from schainpy.gui.viewcontroller.workspace import Workspace
@@ -147,6 +147,7 class Data(object):
147 147 return
148 148
149 149 self.parameters = getattr(dataOut, 'parameters', [])
150 if hasattr(dataOut, 'pairsList'):
150 151 self.pairs = dataOut.pairsList
151 152 self.channels = dataOut.channelList
152 153 self.interval = dataOut.getTimeInterval()
@@ -499,7 +500,7 class PlotterReceiver(ProcessingUnit, Process):
499 500
500 501 self.address = address
501 502 self.plot_address = plot_address
502 self.plottypes = [s.strip() for s in kwargs.get('plottypes', 'rti').split(',')]
503 self.plottypes = [s.strip() for s in kwargs.get('plottypes', '').split(',') if s]
503 504 self.realtime = kwargs.get('realtime', False)
504 505 self.localtime = kwargs.get('localtime', True)
505 506 self.throttle_value = kwargs.get('throttle', 5)
@@ -36,20 +36,20 setup(name="schainpy",
36 36 'schainpy.gui.figures',
37 37 'schainpy.gui.viewcontroller',
38 38 'schainpy.gui.viewer',
39 'schainpy.gui.viewer.windows'},
39 'schainpy.gui.viewer.windows',
40 'schainpy.cli'},
40 41 ext_package='schainpy',
41 py_modules=[''],
42 42 package_data={'': ['schain.conf.template'],
43 43 'schainpy.gui.figures': ['*.png', '*.jpg'],
44 44 },
45 45 include_package_data=False,
46 46 scripts=['schainpy/gui/schainGUI'],
47 47 ext_modules=[
48 Extension("cSchain", ["schainpy/model/proc/extensions.c"]
49 )],
48 Extension("cSchain", ["schainpy/model/proc/extensions.c"])
49 ],
50 50 entry_points={
51 51 'console_scripts': [
52 'schain = schaincli.cli:main',
52 'schain = schainpy.cli.cli:main',
53 53 ],
54 54 },
55 55 cmdclass={'build_ext': build_ext},
General Comments 0
You need to be logged in to leave comments. Login now