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

Methods.py error (windows 10) #15

Open
bclima opened this issue Jun 9, 2017 · 0 comments
Open

Methods.py error (windows 10) #15

bclima opened this issue Jun 9, 2017 · 0 comments

Comments

@bclima
Copy link

bclima commented Jun 9, 2017

I try to following it: http://scattpy.github.io/docs/user/getting_started.html
Erro 1 solved (I think):

from scikits.scattpy import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\scikits\scattpy\__init__.py", line 3, in <module>
    from methods import svm,ebcm,pmm
  File "C:\Python27\lib\site-packages\scikits\scattpy\methods.py", line 3, in <module>
    import laboratory
  File "C:\Python27\lib\site-packages\scikits\scattpy\laboratory.py", line 1, in <module>
    import core
  File "C:\Python27\lib\site-packages\scikits\scattpy\core.py", line 4, in <module>
    from scipy.misc.common import factorial
ImportError: cannot import name factorial

import scipy
scipy.__version__

'0.19.0'

solution:
change scipy.misc.common import factorial to scipy.misc import factorial

but still not working.

from scikits.scattpy import *
from numpy import *
P = ProlateSpheroid(ab=4., xv=2., m=1.33+0.2j)
LAB = Lab(P, alpha=pi/4)
RES = ebcm(LAB)

 
************************************************************
m1=1, alpha=45.0
homogeneous prolate spheroid with ab=4.0, xv=2.0, m=(1.33+0.2j)
 
************************************************************
 
Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    RES = ebcm(LAB)
  File "C:\Python27\lib\site-packages\scikits\scattpy\methods.py", line 50, in meth
    if lab.particle.layers[0].shape.nrange == None:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

How I can solve it? Any help ?

:D

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

1 participant