Git Product home page Git Product logo

arrowhead's Issues

Provide meaningful errors when dot (graphviz) is not installed.

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.

Package arrowhead for Debian

Arrowhead should be packaged for Debian. Ideally this should happen after the 1.0 release with python2.7 support (optional) and tests (mandatory)

Try to support python2.7

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)

level assignment algorithm is broken

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.

Add support for fork + join steps

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 """

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.