Skip to content

Commit

Permalink
Merge pull request #31 from AurelienBesnier/master
Browse files Browse the repository at this point in the history
Lifting restriction on python version
  • Loading branch information
pradal authored Mar 23, 2024
2 parents 1a2673b + d8829d4 commit a78fd87
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ requirements:
- openalea.deploy
- six
run:
- python <3.11
- python x.x
- ipykernel
- configobj
- six
Expand Down
5 changes: 2 additions & 3 deletions src/openalea/core/threadmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ def __init__(self, num_thread=NUM_THREAD):

self.thread_list = []


for i in range(num_thread):
t = Thread(target=worker, args=(self.queue, ))
t.setDaemon(True)
t.daemon = True
t.start()

self.thread_list.append(t)
Expand All @@ -62,7 +61,7 @@ def add_task(self, func, params):
def clear(self):
""" clear pending task """

while(not self.queue.empty()):
while not self.queue.empty():
self.queue.get()


Expand Down
2 changes: 1 addition & 1 deletion src/openalea/core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
MINOR = 4
"""(int) Version minor component."""

POST = 0
POST = 1
"""(int) Version post or bugfix component."""

__version__ = ".".join([str(s) for s in (MAJOR, MINOR, POST)])
Expand Down
19 changes: 11 additions & 8 deletions test/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@
import os
from io import open


def test_export():
"""test export"""
d= {}
with open("catalog.py") as f:
code = compile(f.read(), "catalog.py", 'exec')
d = {}
file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"catalog.py")
with open(file_path) as f:
code = compile(f.read(), file_path, 'exec')
exec(code, globals(), d)
#execfile('catalog.py', globals(), d)
# execfile('catalog.py', globals(), d)
pkg = d['pkg']
plus_node= pkg['plus'].instantiate()
float_node= pkg['float'].instantiate()
int_node= pkg['int'].instantiate()
string_node= pkg['string'].instantiate()
plus_node = pkg['plus'].instantiate()
float_node = pkg['float'].instantiate()
int_node = pkg['int'].instantiate()
string_node = pkg['string'].instantiate()
pm = PackageManager()
pm.add_package(pkg)

Expand Down

0 comments on commit a78fd87

Please sign in to comment.