3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-13 14:29:01 +01:00
Olivier Parcollet f2c7d449cc First commit : triqs libs version 1.0 alpha1
for earlier commits, see TRIQS0.x repository.
2013-07-17 19:24:07 +02:00

10 lines
251 B
Python

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