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 have checked the CHANGELOG and the commit log to find out if the bug was already fixed in the main branch.
I have included in the "Description" section below a traceback from any exceptions related to this bug.
I have included in the "Related issues or possible duplicates" section beloew all related issues and possible duplicate issues (If there are none, check this box anyway).
I have included in the "Environment" section below the name of the operating system and Python version that I was using when I discovered this bug.
I have included in the "Environment" section below the output of pip freeze.
I have included in the "Steps to reproduce" section below a minimally reproducible example.
Description
Unable to draw this particular PAG.
The bug seems to be coming from viz/draw.py.
When the interpreter gets to line 45, the variable arrowtail has not been initialised.
It seems that there is no branch from lines 34 to 39 for handling the case where 'o->' edge has been provided.
Python traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/aryanroy/Projects/causality/pywhy-graphs/pywhy_graphs/viz/draw.py", line 144, in draw
dot, found_circle_sibs = _draw_circle_edges(
^^^^^^^^^^^^^^^^^^^
File "/Users/aryanroy/Projects/causality/pywhy-graphs/pywhy_graphs/viz/draw.py", line 45, in _draw_circle_edges
arrowtail=arrowtail,
^^^^^^^^^
UnboundLocalError: cannot access local variable 'arrowtail' where it is not associated with a value
Checklist
main
branch.pip freeze
.Description
Unable to draw this particular PAG.
The bug seems to be coming from viz/draw.py.
When the interpreter gets to line 45, the variable arrowtail has not been initialised.
It seems that there is no branch from lines 34 to 39 for handling the case where 'o->' edge has been provided.
Python traceback:
Related issues or possible duplicates
Environment
OS: MacOS 14.5 (Sonoma)
Python version:
Output of
pip freeze
:Steps to reproduce
Example source:
The text was updated successfully, but these errors were encountered: