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

How do i run the script? #1

Open
SwastikC opened this issue May 3, 2021 · 3 comments
Open

How do i run the script? #1

SwastikC opened this issue May 3, 2021 · 3 comments

Comments

@SwastikC
Copy link

SwastikC commented May 3, 2021

Hi. I tried running the scipt but it is not running. Can you please help me :(
temmm

@Teusia
Copy link

Teusia commented Jun 14, 2021

Hello,
I just tried and basically I think you are missing a "-f". This is what you should enter:

python pyIDL.py -f pmc_02_model2b.pro

(This works for me provided I move the file to be converted in the same folder as the script of pyIDL.py)
Maybe the readme was not there at the time but I suggest you give it a second look.

Single File Run
 		pyIDL.py -f <filename>
 		pyIDL.py --singlefile <filename>

Multiple File Run
 		pyIDL.py -m <filename1> <filename2> ... <filenameX>
 		pyIDL.py --multifile <filename1> <filename2> ... <filenameX>

Cheers,
Teusia
P.S.: I am not part of the development team, I just happened to need something like pyIDL and was curious about potential issues.

@SwastikC
Copy link
Author

Hi. I added that part but it is only adding import numpy and nothing else. Here are the screenshots of what I did. Can you please let me know what might have gone wrong ?
t
ssss

@Teusia
Copy link

Teusia commented Jun 15, 2021

Hello,
Well I think two things went wrong here:

  • first I was assuming that the content of your pmc_02_model2b.pro was the one in the example file, which what you are showing me here is not the content of that example file. (you do not need to rename your file to get it to convert)
  • Second according to documentation conversion of functions is not supported. So the code probably did not understand what to do with your code.

May I suggest you try converting your file by removing the function definition and any indent in your .pro?
(from my understanding do not expect this to do everything for you, for example it does not support the partial case insensitiveness of IDL and the nested loop synthaxe (FOR DO FOR DO BEGIN))

Cheers,
Teusia

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

2 participants