spectralDNS / shenfun

High performance computational platform in Python for the spectral Galerkin method

Home Page:http://shenfun.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

WangQi1024 opened this issue · 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'

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.