Changeset 9796d0a for python/example.py
- Timestamp:
- 09/25/17 19:20:08 (7 years ago)
- Branches:
- master, pympi
- Children:
- 56b997e
- Parents:
- b02d091
- git-author:
- Hal Finkel <hfinkel@…> (09/25/17 19:20:08)
- git-committer:
- Hal Finkel <hfinkel@…> (09/25/17 19:20:08)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/example.py
rc13d973 r9796d0a 39 39 40 40 import sys 41 import numpy as np 41 42 import genericio as gio 42 43 … … 44 45 gio.gio_inspect(name) 45 46 46 x = gio.gio_read(name, "x") 47 print x 47 if gio.gio_has_variable(name, "x"): 48 x = gio.gio_read(name, "x") 49 y = gio.gio_read(name, "y") 50 z = gio.gio_read(name, "z") 51 print np.column_stack((x, y, z)) 52 else: 53 pos = gio.gio_read(name, "pos") 54 print pos 48 55
Note: See TracChangeset
for help on using the changeset viewer.