Skip to content

pip version tests fail with buffer wrong dimensions #15

@dvincentwest

Description

@dvincentwest

System Information:

Ubuntu 19.10
GCC 8.3.0 (installed with apt)
Boost 1.6.7 (installed with apt)
scattnlay - installed via pip install
Python 3.7 using miniconda

Hi I am exploring this package, but am unable to run the tests. For example, when I run:

~/scattnlay/tests/python/>>> python test01.py

it prints the error message:

Traceback (most recent call last):
  File "test01.py", line 72, in <module>
    terms, Qext, Qsca, Qabs, Qbk, Qpr, g, Albedo, S1, S2 = scattnlay(x, m)
  File "src/scattnlay.pyx", line 97, in scattnlay.scattnlay (src/scattnlay.cpp:2577)
ValueError: Buffer has wrong number of dimensions (expected 2, got 1)

I get a similar error when trying to run examples/calcspectra.py

Traceback (most recent call last):
  File "calc-spectra.py", line 62, in <module>
    mp=True
  File "../scattnlay/main.py", line 137, in scattnlay
    return scattnlay_(x, m, theta, nmax=nmax, pl=pl)
  File "src/scattnlay_mp.pyx", line 97, in scattnlay_mp.scattnlay (src/scattnlay_mp.cpp:2574)
ValueError: Buffer has wrong number of dimensions (expected 2, got 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    v3Need to be resolved before the release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions