Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility? #46

Open
keesj opened this issue Oct 23, 2024 · 0 comments
Open

Incompatibility? #46

keesj opened this issue Oct 23, 2024 · 0 comments

Comments

@keesj
Copy link

keesj commented Oct 23, 2024

Hello, I am trying to render the following using a pip installed wavedrompy

{signal: [
    {    name: 'clk',        wave: 'p..pp......p'},
    {name: 'input_ready',    wave:    '010.........', node:'............', },
    {name: 'signalanalisys', wave: '0...3....0..'   , node:'............', data: ["running"]},
    {                                                 node:'.A..B.......', },
    {name: 'output_ready',    wave:   '0........10.', },
  
],
  edge: [
    'A<->B delay'
]
}

On the online version this works nicely
image

But when I tried to render it using wavedrompy (from the command line) I am getting this error:

Traceback (most recent call last):
  File "/home/keesj/.venv/bin/wavedrompy", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/keesj/.venv/lib/python3.12/site-packages/wavedrom/__init__.py", line 55, in main
    render_write(args.input, args.svg, False)
  File "/home/keesj/.venv/lib/python3.12/site-packages/wavedrom/__init__.py", line 37, in render_write
    out = render(jinput, strict_js_features=strict_js_features)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/keesj/.venv/lib/python3.12/site-packages/wavedrom/__init__.py", line 28, in render
    return WaveDrom().render_waveform(0, source, output, strict_js_features)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/keesj/.venv/lib/python3.12/site-packages/wavedrom/waveform.py", line 784, in render_waveform
    arcs = self.render_arcs(ret.lanes, index, source)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/keesj/.venv/lib/python3.12/site-packages/wavedrom/waveform.py", line 590, in render_arcs
    frm = AttrDict(Events[Edge.frm])
                   ~~~~~~^^^^^^^^^^
KeyError: 'A'

It appears that wavedrompy can not find the "A" label

@keesj keesj changed the title Incompability? Incompatibility? Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant