3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 11:43:47 +01:00
dft_tools/doc/reference/python/data_analysis/hdf5/tut_ex2b.py

10 lines
251 B
Python
Raw Normal View History

from pytriqs.archive import HDFArchive
from pytriqs.gf.local import GfImFreq
R = HDFArchive('myfile.h5', 'r') # Opens the file myfile.h5 in readonly mode
G = R['g1'] # Retrieve the object named g1 in the file as G
# ... ok now I can work with G