numpy problem

31 views
Skip to first unread message

miguel paredes

unread,
May 24, 2017, 8:34:56 AM5/24/17
to pyp...@googlegroups.com
Hello,

I have a problem with numpy version:

pf -c case300
Traceback (most recent call last):
  File "/usr/local/bin/pf", line 11, in <module>
    sys.exit(pf())
  File "/usr/local/lib/python2.7/site-packages/pypower/main.py", line 174, in pf
    _, success = runpf(casedata, ppopt, fname, solvedcase)
  File "/usr/local/lib/python2.7/site-packages/pypower/runpf.py", line 95, in runpf
    ppc = ext2int(ppc)
  File "/usr/local/lib/python2.7/site-packages/pypower/ext2int.py", line 152, in ext2int
    o["bus"]["e2i"] = zeros(max(o["bus"]["i2e"]) + 1)
TypeError: 'numpy.float64' object cannot be interpreted as an index
Miguels-MacBook-Pro:~ miguel$ pf -c case14
Traceback (most recent call last):
  File "/usr/local/bin/pf", line 11, in <module>
    sys.exit(pf())
  File "/usr/local/lib/python2.7/site-packages/pypower/main.py", line 174, in pf
    _, success = runpf(casedata, ppopt, fname, solvedcase)
  File "/usr/local/lib/python2.7/site-packages/pypower/runpf.py", line 95, in runpf
    ppc = ext2int(ppc)
  File "/usr/local/lib/python2.7/site-packages/pypower/ext2int.py", line 152, in ext2int
    o["bus"]["e2i"] = zeros(max(o["bus"]["i2e"]) + 1)
TypeError: 'numpy.float64' object cannot be interpreted as an index

I fix with pip install -U numpy==1.11.0

but, there is a way to fix it from source code?

Thanks

--
Miguel Paredes Quiñones
Cellphone: 3129726824
 
 
Reply all
Reply to author
Forward
0 new messages