1 | NO CONTENT: file renamed from schaincli/README.md to schainpy/cli/README.md |
|
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 |
|
NO CONTENT: file renamed from schaincli/__init__.py to schainpy/cli/__init__.py |
@@ -7,7 +7,6 import glob | |||||
7 | save_stdout = sys.stdout |
|
7 | save_stdout = sys.stdout | |
8 | sys.stdout = open('trash', 'w') |
|
8 | sys.stdout = open('trash', 'w') | |
9 | from multiprocessing import cpu_count |
|
9 | from multiprocessing import cpu_count | |
10 | from schaincli import templates |
|
|||
11 | from schainpy.controller import Project |
|
10 | from schainpy.controller import Project | |
12 | from schainpy.model import Operation, ProcessingUnit |
|
11 | from schainpy.model import Operation, ProcessingUnit | |
13 | from schainpy.utils import log |
|
12 | from schainpy.utils import log | |
@@ -15,6 +14,7 from importlib import import_module | |||||
15 | from pydoc import locate |
|
14 | from pydoc import locate | |
16 | from fuzzywuzzy import process |
|
15 | from fuzzywuzzy import process | |
17 | from schainpy.utils import paramsFinder |
|
16 | from schainpy.utils import paramsFinder | |
|
17 | import templates | |||
18 | sys.stdout = save_stdout |
|
18 | sys.stdout = save_stdout | |
19 |
|
19 | |||
20 |
|
20 |
1 | NO CONTENT: file renamed from schaincli/templates.py to schainpy/cli/templates.py |
|
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 |
|
NO CONTENT: file renamed from schaincli/tests/__init__.py to schainpy/cli/tests/__init__.py |
@@ -1,6 +1,6 | |||||
1 | import pytest |
|
1 | import pytest | |
2 | from click.testing import CliRunner |
|
2 | from click.testing import CliRunner | |
3 | from schaincli import cli |
|
3 | from schainpy.cli import cli | |
4 |
|
4 | |||
5 |
|
5 | |||
6 | @pytest.fixture |
|
6 | @pytest.fixture |
@@ -11,7 +11,6 except: | |||||
11 | 'You should install PyQt4 module in order to run the GUI. See the README.') |
|
11 | 'You should install PyQt4 module in order to run the GUI. See the README.') | |
12 | sys.exit() |
|
12 | sys.exit() | |
13 |
|
13 | |||
14 |
|
||||
15 | from schainpy.gui.viewcontroller.initwindow import InitWindow |
|
14 | from schainpy.gui.viewcontroller.initwindow import InitWindow | |
16 | from schainpy.gui.viewcontroller.basicwindow import BasicWindow |
|
15 | from schainpy.gui.viewcontroller.basicwindow import BasicWindow | |
17 | from schainpy.gui.viewcontroller.workspace import Workspace |
|
16 | from schainpy.gui.viewcontroller.workspace import Workspace |
@@ -147,7 +147,8 class Data(object): | |||||
147 | return |
|
147 | return | |
148 |
|
148 | |||
149 | self.parameters = getattr(dataOut, 'parameters', []) |
|
149 | self.parameters = getattr(dataOut, 'parameters', []) | |
150 |
|
|
150 | if hasattr(dataOut, 'pairsList'): | |
|
151 | self.pairs = dataOut.pairsList | |||
151 | self.channels = dataOut.channelList |
|
152 | self.channels = dataOut.channelList | |
152 | self.interval = dataOut.getTimeInterval() |
|
153 | self.interval = dataOut.getTimeInterval() | |
153 | self.localtime = dataOut.useLocalTime |
|
154 | self.localtime = dataOut.useLocalTime | |
@@ -499,7 +500,7 class PlotterReceiver(ProcessingUnit, Process): | |||||
499 |
|
500 | |||
500 | self.address = address |
|
501 | self.address = address | |
501 | self.plot_address = plot_address |
|
502 | self.plot_address = plot_address | |
502 |
self.plottypes = [s.strip() for s in kwargs.get('plottypes', ' |
|
503 | self.plottypes = [s.strip() for s in kwargs.get('plottypes', '').split(',') if s] | |
503 | self.realtime = kwargs.get('realtime', False) |
|
504 | self.realtime = kwargs.get('realtime', False) | |
504 | self.localtime = kwargs.get('localtime', True) |
|
505 | self.localtime = kwargs.get('localtime', True) | |
505 | self.throttle_value = kwargs.get('throttle', 5) |
|
506 | self.throttle_value = kwargs.get('throttle', 5) |
@@ -17,13 +17,13 class build_ext(_build_ext): | |||||
17 | import numpy |
|
17 | import numpy | |
18 | self.include_dirs.append(numpy.get_include()) |
|
18 | self.include_dirs.append(numpy.get_include()) | |
19 |
|
19 | |||
20 | setup(name="schainpy", |
|
20 | setup(name = "schainpy", | |
21 | version=__version__, |
|
21 | version = __version__, | |
22 | description="Python tools to read, write and process Jicamarca data", |
|
22 | description = "Python tools to read, write and process Jicamarca data", | |
23 | author="Miguel Urco", |
|
23 | author = "Miguel Urco", | |
24 | author_email="miguel.urco@jro.igp.gob.pe", |
|
24 | author_email = "miguel.urco@jro.igp.gob.pe", | |
25 | url="http://jro.igp.gob.pe", |
|
25 | url = "http://jro.igp.gob.pe", | |
26 | packages={'schainpy', |
|
26 | packages = {'schainpy', | |
27 | 'schainpy.model', |
|
27 | 'schainpy.model', | |
28 | 'schainpy.model.data', |
|
28 | 'schainpy.model.data', | |
29 | 'schainpy.model.graphics', |
|
29 | 'schainpy.model.graphics', | |
@@ -36,25 +36,25 setup(name="schainpy", | |||||
36 | 'schainpy.gui.figures', |
|
36 | 'schainpy.gui.figures', | |
37 | 'schainpy.gui.viewcontroller', |
|
37 | 'schainpy.gui.viewcontroller', | |
38 | 'schainpy.gui.viewer', |
|
38 | 'schainpy.gui.viewer', | |
39 |
'schainpy.gui.viewer.windows' |
|
39 | 'schainpy.gui.viewer.windows', | |
40 | ext_package='schainpy', |
|
40 | 'schainpy.cli'}, | |
41 | py_modules=[''], |
|
41 | ext_package = 'schainpy', | |
42 | package_data={'': ['schain.conf.template'], |
|
42 | package_data = {'': ['schain.conf.template'], | |
43 | 'schainpy.gui.figures': ['*.png', '*.jpg'], |
|
43 | 'schainpy.gui.figures': ['*.png', '*.jpg'], | |
44 | }, |
|
44 | }, | |
45 | include_package_data=False, |
|
45 | include_package_data = False, | |
46 | scripts=['schainpy/gui/schainGUI'], |
|
46 | scripts = ['schainpy/gui/schainGUI'], | |
47 | ext_modules=[ |
|
47 | ext_modules = [ | |
48 | Extension("cSchain", ["schainpy/model/proc/extensions.c"] |
|
48 | Extension("cSchain", ["schainpy/model/proc/extensions.c"]) | |
49 |
|
|
49 | ], | |
50 | entry_points={ |
|
50 | entry_points = { | |
51 | 'console_scripts': [ |
|
51 | 'console_scripts': [ | |
52 | 'schain = schaincli.cli:main', |
|
52 | 'schain = schainpy.cli.cli:main', | |
53 | ], |
|
53 | ], | |
54 | }, |
|
54 | }, | |
55 | cmdclass={'build_ext': build_ext}, |
|
55 | cmdclass = {'build_ext': build_ext}, | |
56 | setup_requires=["numpy >= 1.11.2"], |
|
56 | setup_requires = ["numpy >= 1.11.2"], | |
57 | install_requires=[ |
|
57 | install_requires = [ | |
58 | "scipy >= 0.14.0", |
|
58 | "scipy >= 0.14.0", | |
59 | "h5py >= 2.2.1", |
|
59 | "h5py >= 2.2.1", | |
60 | "matplotlib >= 2.0.0", |
|
60 | "matplotlib >= 2.0.0", | |
@@ -65,5 +65,5 setup(name="schainpy", | |||||
65 | "fuzzywuzzy", |
|
65 | "fuzzywuzzy", | |
66 | "click", |
|
66 | "click", | |
67 | "python-Levenshtein" |
|
67 | "python-Levenshtein" | |
68 | ], |
|
68 | ], | |
69 | ) |
|
69 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now