@@ -1,8 +1,8 | |||||
1 | """Signal chain python package""" |
|
1 | """Signal chain python package""" | |
2 |
|
2 | |||
3 | try: |
|
3 | try: | |
4 | from .controller import Project |
|
4 | from schainpy.controller import Project | |
5 | except: |
|
5 | except: | |
6 | pass |
|
6 | pass | |
7 |
|
7 | |||
8 |
__version__ = '3.0.0b |
|
8 | __version__ = '3.0.0b5' |
@@ -13,6 +13,7 import ast | |||||
13 | import datetime |
|
13 | import datetime | |
14 | import traceback |
|
14 | import traceback | |
15 | import time |
|
15 | import time | |
|
16 | import multiprocessing | |||
16 | from multiprocessing import Process, Queue |
|
17 | from multiprocessing import Process, Queue | |
17 | from threading import Thread |
|
18 | from threading import Thread | |
18 | from xml.etree.ElementTree import ElementTree, Element, SubElement |
|
19 | from xml.etree.ElementTree import ElementTree, Element, SubElement | |
@@ -21,6 +22,8 from schainpy.admin import Alarm, SchainWarning | |||||
21 | from schainpy.model import * |
|
22 | from schainpy.model import * | |
22 | from schainpy.utils import log |
|
23 | from schainpy.utils import log | |
23 |
|
24 | |||
|
25 | if 'darwin' in sys.platform and sys.version_info[0] == 3 and sys.version_info[1] > 7: | |||
|
26 | multiprocessing.set_start_method('fork') | |||
24 |
|
27 | |||
25 | class ConfBase(): |
|
28 | class ConfBase(): | |
26 |
|
29 | |||
@@ -636,7 +639,7 class Project(Process): | |||||
636 | while not err: |
|
639 | while not err: | |
637 | for conf in self.getUnits(): |
|
640 | for conf in self.getUnits(): | |
638 | ok = conf.run() |
|
641 | ok = conf.run() | |
639 |
if ok |
|
642 | if ok == 'Error': | |
640 | n -= 1 |
|
643 | n -= 1 | |
641 | continue |
|
644 | continue | |
642 | elif not ok: |
|
645 | elif not ok: |
@@ -46,6 +46,7 setup( | |||||
46 | "Programming Language :: Python :: 3.5", |
|
46 | "Programming Language :: Python :: 3.5", | |
47 | "Programming Language :: Python :: 3.6", |
|
47 | "Programming Language :: Python :: 3.6", | |
48 | "Programming Language :: Python :: 3.7", |
|
48 | "Programming Language :: Python :: 3.7", | |
|
49 | "Programming Language :: Python :: 3.8", | |||
49 | "Topic :: Scientific/Engineering", |
|
50 | "Topic :: Scientific/Engineering", | |
50 | ], |
|
51 | ], | |
51 | packages = { |
|
52 | packages = { |
General Comments 0
You need to be logged in to leave comments.
Login now