shenfun icon indicating copy to clipboard operation
shenfun copied to clipboard

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

Open WangQi1024 opened this issue 3 years ago • 1 comments

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'

WangQi1024 avatar Jan 19 '22 07:01 WangQi1024

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.

mikaem avatar Jan 19 '22 08:01 mikaem