~ubuntu-branches/ubuntu/oneiric/ifeffit/oneiric

« back to all changes in this revision

Viewing changes to wrappers/python/m.py

  • Committer: Bazaar Package Importer
  • Author(s): Carlo Segre
  • Date: 2008-11-17 13:37:57 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081117133757-seo0991er3qlihxo
Tags: 2:1.2.11c-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python -O 
2
 
import Ifeffit
3
 
 
4
 
iff = Ifeffit.Ifeffit()
5
 
    
6
 
# note that a put_scalar can now go first!
7
 
t = iff.put_scalar('tt',2.03)
8
 
 
9
 
iff.ifeffit('ss = 88.1')
10
 
t = iff.get_scalar('ss')
11
 
 
12
 
iff.ifeffit('my.x = indarr(10)')
13
 
t = iff.get_array('my.x')