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

Cannot try demo 'show_tree' #31

Open
ChenDRAG opened this issue Jan 27, 2019 · 1 comment
Open

Cannot try demo 'show_tree' #31

ChenDRAG opened this issue Jan 27, 2019 · 1 comment

Comments

@ChenDRAG
Copy link

I have some problem trying to try demo 'show_tree', The error message is like this? Have any idea why?
I use Python 2.7.12
Thanks a lot.

- - - - - - - - - - - <CODE> - - - - - - - - - - - -

import chumpy as ch

[x1, x2, x3] = ch.array(10), ch.array(20), ch.array(30)
for i in range(3): x2 = x1 + x2 + x3

x2.dr_wrt(x1) # pull cache 
x2.dr_wrt(x3) # pull cache
x1.label='x1' # for clarity in show_tree()
x2.label='x2' # for clarity in show_tree()
x3.label='x3' # for clarity in show_tree()
x2.show_tree(cachelim=1e-4) # in MB

- - - - - - - - - - - </CODE> - - - - - - - - - - - -

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/chumpy/__init__.py", line 118, in demo
    exec('global np\n' + demos[which], globals(), locals())
  File "<string>", line 13, in <module>
  File "/usr/local/lib/python2.7/dist-packages/chumpy/ch.py", line 1009, in show_tree
    assert DEBUG, "Please use dr tree visualization functions in debug mode"
AssertionError: Please use dr tree visualization functions in debug mode

@liangwx
Copy link

liangwx commented Apr 9, 2022

have you solved it?I meet the same issue

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

2 participants