Re: [Ifeffit] Scripting - Python

2011-07-14 Thread Andrew Korinda
Ya, I can go back and do that, just glad to have a viable lead. I'll get back to everyone next week about how it goes but this sounds promising. Andy K. On Thu, Jul 14, 2011 at 10:03 PM, Matt Newville wrote: > Hi Andrew, > > Ah, I believe the problem is due to using 64-bit version of Python. > T

Re: [Ifeffit] Scripting - Python

2011-07-14 Thread Matt Newville
Hi Andrew, Ah, I believe the problem is due to using 64-bit version of Python. That is, the ifeffit_12.dll *was* found, but it couldn't be loaded because it is built for 32-bit. I was testing with a 32-bit Python on a Win7 64-bit machine... I'm pretty sure the ifeffit_12.dll would have to be re

Re: [Ifeffit] Scripting - Python

2011-07-14 Thread Andrew Korinda
So I went through and double checked the use_ifeffit, no change. I then entered the bin path directly and tried again, again with the same results. Following your code, I just have one difference when I import Ifeffit: "Forcing DISTUTILS_USE_SDK=1" Do I need to install a version of Visual Studio?

[Ifeffit] Bond length to ATOM conversion

2011-07-14 Thread Nicholas.Tse
G'day Listed Members, Does anyone know how to convert bond length and bond angles into Cartesian coordinates to input into ATOM in Artemis. The space group is number 176 a P63/m (ie hexagonal dipyramidal) with a a=b=6.3 A, c=3.6 A. Apical Equatorial M-O2 M-O1 O1-O2 O1-O2

Re: [Ifeffit] Scripting - Python

2011-07-14 Thread Matt Newville
Hi Andrew, Just as a follow-up, loading the Ifeffit library from python worked for me on a separate Win7 machine (64bit). I even had Ifeffit installed to the non-default location. With Ifeffit installed to C:\apps\Ifeffit, I edited C:\apps\Ifeffit\bin\use_ifeffit.bat to read @echo off SET

Re: [Ifeffit] Scripting - Python

2011-07-14 Thread Matt Newville
Hi Andrew, Hmm, not sure what's going on. It worked for me on one system, but I'll try this on another machine later today. I think the key is to have the folder with ifeffit_12.dll in your PATH. You say you had to edit the use_ifeffit.bat file -- did this have the incorrect paths? A reasonabl

Re: [Ifeffit] Scripting - Python

2011-07-14 Thread Andrew Korinda
Thanks Matt. That new binary was a great help. The install appears to have gone fine. I made the appropriate path changes in use_ifeffit.bat, ifeffit_config.py and ifeffit.py to reflect where I have installed Ifeffit. I noticed this when I was trying to debug an import error I get when I call ifeff