zyga / arrowhead Goto Github PK
View Code? Open in Web Editor NEWFlow-chart computting for Python
License: Other
Flow-chart computting for Python
License: Other
The step level assignment algorithm is broken. It should maintain a set of nodes with known levels (starting with any pre-existing level as well as the initial state). Items from that set should be the TODO list of the level assignment loop. The algorithm should then reset all levels from all nodes so that it doesn't stop mid way on any pre-set level.
Currently when '-t x11' is used to display the dot rendering of the flow a confusing exception is raised:
zyga@iffy:~/arrowhead/examples$ ./tutorial1.py --preview -t x11
Traceback (most recent call last):
File "./tutorial1.py", line 61, in
main(HelloWorld)
File "/home/zyga/arrowhead/arrowhead/main.py", line 57, in main
viewer.update(flow_cls)
File "/home/zyga/arrowhead/arrowhead/main.py", line 144, in update
self.proc = subprocess.Popen(['dot', '-Txlib', self.dot_file.name])
File "/usr/lib/python3.2/subprocess.py", line 745, in init
restore_signals, start_new_session)
File "/usr/lib/python3.2/subprocess.py", line 1361, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: 'dot'
Arrowhead should handle this situation with something better.
Many steps can be performed in parallel. Arrowhead should support this feature and allow the user to decide how the parallelism is implemented. The syntax is yet undefined but a simple example can be seen below:
@step(fork=True)
@arrow(to="task_a")
@arrow(to="task_b")
@arrow(to="task_c")
@arrow(to="oops", error=Exception) # implicit fork=False)
def fork(step):
""" fork all tasks """
@step
@arrow(to="join")
def task_a(step):
"""do stuff for task A"""
@step
@arrow(to="join")
def task_b(step):
"""do stuff for task B"""
@step
@arrow(to="join")
def task_c(step):
"""do stuff for task C"""
@step(join=True, accepting=True)
def join(step):
""" join all tasks """
@step(accepting=True)
def oops(step):
""" something went south """
Arrowhead should have tests sufficient for making modifications to the core without the fear of introducing regressions.
A lot of good people are still stuck on python2.7 for variety of reasons. Arrowhead should support them, if that does not collide with the goal of having excellent features (some of which may require python3.2)
Arrowhead should be packaged for Debian. Ideally this should happen after the 1.0 release with python2.7 support (optional) and tests (mandatory)
It is quite easy to inherit or create a flow from scratch in which some states are unreachable from the initial state. Such flows should be detected and reported
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.