0

I am using pidly, and i would like to transfer a variable from python into IDL

import pidly
traj = 'test.traj'
idl = pidly.IDL()
idl('trajfile = "{0}".format(traj)')

I just want to be able to use the variable that i have in python in an IDL command.

FObersteiner
  • 22,500
  • 8
  • 42
  • 72
ColleenB
  • 135
  • 5
  • 19
  • What is the output or result of your current code? Can you provide an example that would show whether or not you've coded it right? – sappjw Aug 06 '19 at 14:34
  • You may also want to try `idl('trajfile = "{0}"'.format(traj))` – sappjw Aug 06 '19 at 14:35

0 Answers0