comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » python bug??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
python bug?? [message #91694] Thu, 13 August 2015 08:18 Go to previous message
Dae-Kyu Shin is currently offline  Dae-Kyu Shin
Messages: 25
Registered: February 2015
Junior Member
pro test1
x = dindgen(3)*3
y = dindgen(3)*2
z = dindgen(3, 3)


python.run, 'from scipy import interpolate'
f = python.interpolate.interp2d(x, y, z)

newx = [1,2,3d]
newy = [4, 5, 6d]
print, f(newx, newy)
end

The test1.pro is not working
The error message is

% Compiled module: TEST1.
% Loaded DLM: PYTHON27.
% Python: Multiple array subscripts are not allowed.
% Execution halted at: TEST1 12 D:\IDL_package\IDLWorkspace85\Default\test1.pro
% $MAIN$


But then code was working when i copy and paste the code in command line.
[Message index]
 
Read Message
Read Message
Previous Topic: putting .txt files in a structure
Next Topic: multi-core computing in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:20:29 PDT 2025

Total time taken to generate the page: 0.00443 seconds