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

AttributeError: 'tuple' object has no attribute 'copy' #87

Open
WangQi1024 opened this issue Jan 19, 2022 · 1 comment
Open

AttributeError: 'tuple' object has no attribute 'copy' #87

WangQi1024 opened this issue Jan 19, 2022 · 1 comment

Comments

@WangQi1024
Copy link

Hi I really need your help, it's important to me!
when I copy the code which in rb equation part, I create the testrb.py.
And when I run python testrb.py, it made this mistake.
Please help me resolve it, thank you very much
File "testrb.py", line 77, in
solver0.append(chebyshev.la.Helmholtz(*mats0))
File "/home/qiwang/anaconda3/envs/fk/lib/python3.6/site-packages/shenfun/chebyshev/la.py", line 231, in init
bc_mats = extract_bc_matrices([args])
File "/home/qiwang/anaconda3/envs/fk/lib/python3.6/site-packages/shenfun/matrixbase.py", line 1678, in extract_bc_matrices
for b in a.copy():
AttributeError: 'tuple' object has no attribute 'copy'

@mikaem
Copy link
Member

mikaem commented Jan 19, 2022

Hi
If you are referring to the Rayleigh-Benard demo, then please try the solver here instead of copying the code from the demo program.

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