>>> import pysic
>>> pysic.get()
Importing all SIC variables into Python...
... done.
>>> g = pysic.gdict
>>> g
Container for imported Gildas variables. Variables are accessed as
attributes of this object.
>>> g.pi # Get Gildas variable PI
3.14159265359
>>> g.a = (1,2,3) # Set a new Gildas variable A
A is a INTEGER*4, 1D (3x0x0x0) (GLOBAL,RW) -> a
>>> pysic.comm('exa a')
A is an integer Array of dimensions 3
1 2 3
|