Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Components.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,12 +767,13 @@ def GetBlock(filename, label):
@param canvas: position of block is performed depending on canvas
"""

### exclude all chinese character (just for mac)
if wx.Platform == '__WXMAC__':
L = re.findall(u'[^\u4E00-\u9FA5]', filename)
filename = ''.join(filename)

ext = os.path.splitext(filename)[-1]

if wx.Platform == '__WXMAC__':
### exclude all chinese character (just for mac)
filename = ''.join(re.findall(u'[^\u4E00-\u9FA5]', filename))

### catch candidtate class from extention
if ext == '.amd':
cls = AMDComponent
Expand Down
14 changes: 9 additions & 5 deletions ImportLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,14 @@ def __init__(self, *args, **kwargs):
self._cb = CheckListCtrl(rightPanel)

try:
### Populate Check List dynamicaly
pool = ThreadPoolExecutor(3)
future = pool.submit(self._cb.Populate, (D))
future.done()
if wx.Platform == '__WXMSW__':
pool = ThreadPoolExecutor(3)
future = pool.submit(self._cb.Populate, (D))
future.done()
else:
### Populate Check List dynamicaly
with ThreadPoolExecutor(max_workers=5) as executor:
executor.submit(self._cb.Populate, (D))
except:
self._cb.Populate(D)

Expand Down Expand Up @@ -525,4 +529,4 @@ def OnQuit(self, event):
if __name__ == '__main__':

app = TestApp(0)
app.MainLoop()
app.MainLoop()
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@


# What is DEVSimPy
<p align="justify">
DEVSimPy is an open Source project (under GPL V.3 license) supported by the [SPE](http://http://spe.univ-corse.fr/) (Sciences pour l'Environnement) team of the UMR CNRS 6134 Lab. of the [University of Corsica "Pasquale Paoli"](http://univ-corse.fr). This aim is to provide a GUI for the Modeling & Simulation of PyDEVS and [PyPDEVS](http://msdl.cs.mcgill.ca/projects/DEVS/PythonPDEVS) models. PyDEVS is an API allowing the implementation of the DEVS formalism in Python language. PyPDEVS is the parallel version of PyDEVS based on Parallel DEVS formalism which is an extension of the DEVS formalism.
The DEVSimPy environment has been developed in Python with the [wxPython](http://www.wxpython.org) graphical library without
strong dependencies other than the [Scipy](http://www.scipy.org) and the [Numpy](http://www.numpy.org) scientific python libraries. The basic idea behind DEVSimPy is to wrap the PyDEVS API with a GUI allowing
significant simplification of handling PyDEVS/PyPDEVS models (like the coupling between models or their storage into libraries).
</p>

# Requirements
The use of DEVSimPy requires:
Expand Down Expand Up @@ -47,6 +45,7 @@ All dependencies can be installed using requirements.txt file:
```sh
$ pip install -r requirements.txt
```
For os X users, python.app is required in order to use pythonw instead of python to execute the devismpy.py file.

DEVSimPy don't require installation and works on all platforms (). To execute DEVSimPy:
```sh
Expand Down