[Ifeffit] PYTHON scripting on MacOS & XP (Joel Brugger)
Matt Newville
newville at cars.uchicago.edu
Tue Aug 17 06:51:12 CDT 2010
Hi Joel,
I'm not sure... can you give a few more details of what you're trying
and where the problems are?
It should go something like this:
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Ifeffit
>>> iff = Ifeffit.Ifeffit()
>>> iff.ifeffit('show $&build')
$&build = 1.2.11c Copyright (c) 2008 Matt Newville, Univ of Chicago
0
>>> import numpy
>>> x = numpy.arange(100)/10.0
>>> y = numpy.cos(x)
>>> iff.put_array('m.x', x)
>>> iff.put_array('m.y', y)
>>> iff.ifeffit("show @arrays")
m.x = 100 pts [ 0.000 : 9.900 ]
m.y = 100 pts [-0.9997 : 1.000 ]
0
>>> iff.ifeffit('plot m.x, m.y')
0
--Matt
On Sun, Aug 15, 2010 at 9:25 PM, Brugger, Joel (SAM)
<Joel.Brugger at samuseum.sa.gov.au> wrote:
> Hi Matt,
>
> Thanks for the update. We had trouble getting the XP version to work.
>
> We're running Win XP under parallels on the Mac. Ifeffit (1.2.11), python
> (2.5) and the wrapper installed successfully. The ifeffit.py shell (in the
> python/scripts directory) does not recognise any python commands. And
> opening python in the ifeffit directory - it does not recognise ifeffit in
> the "import ifeffit" command.
>
> What are we doing wrong?
>
> Thanks,
>
> Joel & Barbara
>
>
> _______________________________________________
> Ifeffit mailing list
> Ifeffit at millenia.cars.aps.anl.gov
> http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
>
>
More information about the Ifeffit
mailing list