You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am interested in learning about the visualization feature in DistAlgo, which will be very helpful. So I downloaded one of the examples in lamutex folder, which contains this feature and ran it but the message i'm getting is this: Invalid configuration value. . I have also tried using the code on line 4 instead of line 6 and even though it ran, there was no visualization.In addition I have the latest version of distAlgo.
1. def main():
2. nprocs = int(sys.argv[1]) if len(sys.argv) > 1 else 10
3. nrequests = int(sys.argv[2]) if len(sys.argv) > 2 else 1
4. #config(channel is fifo, clock is lamport, visualize is True)
5. config(channel is fifo,clock is lamport)
6. config(visualize is {
7. # colors: override message and process colors, defaults to random
8. # supports any valid CSS color value
9. # https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
10. # examples: Transparent, Yellow, DarkRed, rgb(255, 255 ,0),
11. # rgba(255, 255, 0, 0.1), hsl(210, 100%, 50%)
12. 'colors': {
13. # processes
14. 'P': 'MediumVioletRed',
15. # messages
16. 'request': 'PapayaWhip',
17. 'release': 'hsl(210, 100%, 50%)',
18. 'ack': 'rgba(255, 0, 0, 0.1)'
19. }
20. })
21.
22. ps = new(P, num=nprocs)
23. for p in ps: setup(p, (ps-{p}, nrequests))
24. start(ps)
25. await(each(p in ps, has=received(('done', p))))
26. send(('done',), to=ps)
The text was updated successfully, but these errors were encountered:
this has been for internal use as we are still studying the best way going forward (so things will definitely change), but since you've found it yourself (i wonder how), you may enjoy some of the joys we have had since last year:
I am interested in learning about the visualization feature in DistAlgo, which will be very helpful. So I downloaded one of the examples in lamutex folder, which contains this feature and ran it but the message i'm getting is this:
Invalid configuration value.
. I have also tried using the code on line 4 instead of line 6 and even though it ran, there was no visualization.In addition I have the latest version of distAlgo.The text was updated successfully, but these errors were encountered: